#include<iostream> int main() { int val = 10; while (val >= 0) { std::cout <<"10 - "<<val<<" = "<<10-val<<std::endl; --val; } return 0; }
Standard input is empty
10 - 10 = 0 10 - 9 = 1 10 - 8 = 2 10 - 7 = 3 10 - 6 = 4 10 - 5 = 5 10 - 4 = 6 10 - 3 = 7 10 - 2 = 8 10 - 1 = 9 10 - 0 = 10