The following program teaches how to do addition using functions in c programming language.
#include<stdio.h>
#include<conio.h>
void add()
{
int x,y,z;
clrscr();
printf("Enter the number\n");
scanf("\n%d%d",&y,&z);
x=y+z;
printf("The result of Addition=%d\n",x);
}
void main()
{
add();
getch();
}
No comments:
Post a Comment