Ckalari.com is the No.1 website to get the best of C programs, free source codes, projects in c language……
|
A C program to find sum of two given numbers using function
#include<stdio.h>
#include<conio.h>
void sum();
void main()
{
clrscr();
sum();
getch();
}
void sum()
{
int n1,n2,s;
printf("\nEnter two numbers\n ");
scanf("%d%d",&n1,&n2);
s=n1+n2;
printf("\nsum is%d",s);
}
|
|