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