Write a c program to demonstrate function without arguments and without return value
#include<stdio.h>
#include<conio.h>
void main()
{
void natural(); //function prototype
clrscr();
natural(); //function call
getch();
}
void natural()
{
int i;
for(i=1;i<=10;i++)
printf("%d\n",i);
}
Output:
1
2
3
4
5
6
7
8
9
No comments: