Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Deepak Patil
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
C Program to Print Natural Numbers from 1 to N using For Loop
#include<stdio.h>
int main()
{
int Number, i;
printf("\n Please Enter any Integer Value : ");
scanf("%d", &Number);
printf("\n List of Natural Numbers from 1 to %d are \n", Number);
for(i = 1; i <= Number; i++)
{
printf(" %d \t", i);
}
return 0;
}
Engineering-CS
GMIT Davangere
Artificial intelligence
Machine learning
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your answer or reply to answer
Recent e-Note Comments
Recent e-Notes
Top Scored e-Notes
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login