From 56e8026a5379d3c467eeca6eaaa4566bf54a0046 Mon Sep 17 00:00:00 2001 From: Sooraj Jha <72682874+Sooraj2002@users.noreply.github.com> Date: Tue, 12 Jan 2021 12:19:51 +0530 Subject: [PATCH] Create To use continue and break in C --- To use continue and break in C | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 To use continue and break in C 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(); +} +