diff --git a/To use continue and break in C b/To use continue and break in C new file mode 100644 index 0000000..1be0f87 --- /dev/null +++ b/To use continue and break in C @@ -0,0 +1,26 @@ +#include +#include +void main() +{ +int n,i,a[20]; +clrscr(); +printf("\n ENTER THE VALUE OF N "); +scanf("%d",&n); +for(i=1;i<=n;i++) +{ +printf("\n ENTER %d NUMBER: "); +scanf("%d",&a[i]); + if(a>0) + { +continue; + } + if(a>=100) + { + break; +} +sum=sum+a[i] +} +printf("\n SUM IS : %d ",sum); +getch(); +} +