Original Code:
#include <stdio.h>
int main()
{
int x, y;
printf("Enter a number: ");
scanf("%d", &x);
printf("Enter another number: ");
scanf("%d", &y);
printf("%d times %d equals %d", x, y, x * y);
return 0;
}
Output:
Enter a number: 7
Enter another number: 5
7 times 5 equals 35
A highlighted number denotes an input.
No comments:
Post a Comment