Advertisement

Make a program for multiplying no: 1 to 10.


#include<stdio.h>
 #include<conio.h>
 void main()
 {
 clrscr();
 int i=1,b=1;
 while (i<=10)
 {
 b=b*i;
 i=i+1;
 }
 printf("Result==%d",b);
 getch();
 }

No comments:

Post a Comment

Please comment bellow. Share your knowledge