C LANGUAGE - TO PRINT 1 to N NUMBERS

// print 1 to N number #include<stdio.h> int main() { int i,j,n; printf("Enter the value N:>>\n"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("\n%d",i); } return 0; }
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "CODING C"(Free App) COMPILER FROM GOOGLE PLAY STORE.