google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a c program to demonstrate function without arguments and without return value - 2nd puc computer science

Write a c program to demonstrate function without arguments and without return value

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                                                                              

10   
Write a c program to demonstrate function without arguments and without return value Write a c program to demonstrate function without arguments and without return value Reviewed by Vision Academy on December 13, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.