#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; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter