Skip to main content

PROGRAM TO ENTER THREE NUMBERS AND PRINT THEIR SUM


LIST OF PROGRAMS


#include<stdio.h>
#include<conio.h>
int x,y,z,su;
void main()
{
void sum(int x,int y,int z);
clrscr();
printf("enter the three numbers");
scanf("%d%d%d",&x,&y,&z);
sum(x,y,z);
getch();
}
void sum(int x,int y,int z)
{
su=x+y+z;
printf("\nSUM IS : %d",su);
}

Comments

Popular posts from this blog

unix commands