Hi,
just curious what exactly the "continue", "break" stand for ?
can some one enlighten me based on the source code below.
i'm in doubt for understand the source code below.
Assume that the largest number key in = 14
y i remove the continue, the value = 13 / 91
if with continue, answer = 10 /67
Code:
#include <stdio.h>
#include <conio.h>
int s,n;
main()
{
int m;
int i=0;
printf("Enter largest number:");
scanf("%d",&m);
while(1){
i++;
if(i==m) break;
if(i%4 ==0) continue;
n++;
s+=i;
}
printf("%d numbers indivisible by 4\n");
printf("and less than %d\n\n");
printf("Total is %d\n",n,m, s);
getchar();
getchar();
clrscr();
}