This commit is contained in:
2024-06-17 03:24:07 +03:00
parent 04d946e28c
commit 7522af1dc2
10 changed files with 105 additions and 5 deletions

22
DeitelC/Chapter4/1to20.c Normal file
View File

@ -0,0 +1,22 @@
#include <stdio.h>
int main(void){
int counter = 1;
while(counter<= 20) {
if(counter%5==0) {
printf("%d\t",counter);
counter++;
} else {
counter++;
}
}
printf("\n");
for(int x = 1; x<=20 ;++x) {
if (x%5==0) {
printf("%d\t", x);
} else {
}
}
return 0;
}