Advertisement

What is the output of the following program?


#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int i,j,c;
clrscr();
c=0;
for(i=1;i<=10;i++)
for(j=1;j<=5;j++)
c++;
printf("result=%d",c);
getch();
}
Output is: 50
N.B: Short Cut Rule is 10*5= 50.

No comments:

Post a Comment

Please comment bellow. Share your knowledge