do while loop

PHOTO EMBED

Sat Jan 29 2022 19:47:16 GMT+0000 (Coordinated Universal Time)

Saved by @m1racle #c

#include <stdio.h>

int main() {
    int i = 0;
    int n;
    
    printf("enter the value of n\n");
    scanf("%d" , &n);
    
    
    do{
        
     printf("the first n numbers are %d\n" , i+1);
     
     i++;
    }
    while(i < n);
	//code
	return 0;
}

content_copyCOPY