Hello peeps, You guys gonna have to bare with me as I am new to programing.
My algorithms professor gave us an assignment develop a program in C wich will take any integer and multiply it form 0 to 10. The problem is I only get the result in the command line prompt after I hit "ESC" and press "ENTER" I have no clue why, since I haven't messed at all with the debugger, can anybody shed some light?
this is my code
Code:#include <stdio.h> int main() { int x, multiply, result; printf("Multiply from 0 to 10:"); scanf("%d\n", &x); for ( multiply = 0; multiply <= 10; multiply++ ) { result = x * multiply; printf("%d x %d = %d\n", x, multiply, result ); } return 0; }



3Likes
LinkBack URL
About LinkBacks



