#include <stdio.h> int main() { int n; printf("enter the value of n : "); scanf("%d \n", &n); int i = 0; do { printf("%d\n", i); i++; } while(i <= n); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: