#include <stdio.h> int main(){int n,i=1;int res;//printf("Enter the number");scanf("%d",&n);while(i<=10){ res = n * i; printf("%d * %d = %d\n",n,i,res); i++;} return 0;}
4
4 * 1 = 4 4 * 2 = 8 4 * 3 = 12 4 * 4 = 16 4 * 5 = 20 4 * 6 = 24 4 * 7 = 28 4 * 8 = 32 4 * 9 = 36 4 * 10 = 40
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!