Showing posts with label Without passing Parameter without Return Value. Show all posts
Showing posts with label Without passing Parameter without Return Value. Show all posts

Monday, 15 October 2012

Program Of Without Passing Parameter Without Return Value in C

#include<stdio.h>
#include<conio.h>
                              
                              void sum();     // Function Decalaration
 
main()
{
 
clrscr();
                                  
                                 sum();    // Function Calling
 
getch();
 
}
                              
                               void sum()   // Function Define
 
{
 
int a,b,c;
 
printf("Enter First NUmber=");
 
scanf("%d",&a);
 
printf("Enter Second NUmber=");
 
scanf("%d",&b);
 
c=a+b;
 
printf("\n Answer=%d",c);
 
}