//Write a program to print multiplication table of any number using while looping. #include<stdio.h> #include<conio.h> void main() { int x=1,n; clrscr(); printf("Enter any number:\n"); scanf("%d",&n); while(x<=10) //Multiple 35 by 2 because because upto 70 there is 35 odd numbers and 35 even numbers { printf("%dx%d=%d",n,x,n*x);//Eg : nx1, nx2, nx3, ..... x++;//increase x by 1 } getch(); }
Comments
Post a Comment