do while loop
Tue Jun 07 2022 19:26:08 GMT+0000 (Coordinated Universal Time)
Saved by
@KanishqJ8
/*do while loop executes atleast once*/
int main(){
int num, index=0;
printf("enter a number \n");
scanf("%d",&num);
do{
printf("%d \n",index);
index+=1;
} while (index<num);
return 0;
}
content_copyCOPY
Comments