Print N natural number in reverse order program in C
This is our first program
in C programming language. This C program
will print the text
“Hello World!” on the console output screen.
In this post we will learn how to
write a C Program and explore each statements
in this C Program and many more.
/*
Program : Check Number Divisible By 10 Or Not
Filename : divisibleby10.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
int num;
printf("Enter a number : ");
scanf("%d",&num);
while(num!=0)
{
printf("%d \n",num);
num--;
}
return(0);
}
Program : Check Number Divisible By 10 Or Not
Filename : divisibleby10.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
int num;
printf("Enter a number : ");
scanf("%d",&num);
while(num!=0)
{
printf("%d \n",num);
num--;
}
return(0);
}
Output :
Enter a number :15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Explanation Of Each Statements In The Program:-
To learn any programming language, practical is must important
than others factors. First of
all we learn and understand the language and then
we implements, each things related to
the language and explore about it. After
all we are interested in making products (Software)
by using that language.