Advertisement

Output :: If limit=5, then, 5*1=5, 5*2=10 …………. ……….. ……….. 5*10=50



#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{      clrscr();
       int result,i,n;
       printf("Enter number=");
       scanf("%d",&n);
       result=1;
       i=1;
       while(i<=10)
       {  result= n*i;
                  printf("\n\n %d*%d=%d",n,i,result);
                  i=i++;}

                  getch();  }

No comments:

Post a Comment

Please comment bellow. Share your knowledge