Create BreakContinueExit.c

master
MD15 2020-04-10 12:40:31 +07:00 committed by GitHub
parent 7dee635614
commit 0872850a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#include <stdio.h>
int main () {
int i, awal, bil;
int error;
scanf("%d",&awal);
for(i=1;i<=awal;i++) {
if(i==42) {
printf("ERROR\n");
break;
}
if(i%10 == 0 ) {
continue;
}
printf("%d\n",i);
}
}