can you write a c programe to calculate the sum of 3 numbers.
Answers
Answered by
2
Answer:
write the following
Explanation:
#include <stdio.h>
#include <conio.h>
sum(int,int,int);
void main()
{
int a,b,c,d;
clrscr();
printf("\nACCEPT VALUE FOR a,b,c:\n");
scanf("%d %d %d",&a,&b,&c);
d=sum(a,b,c);
printf("\nSUM OF %d,%d and %d IS %d",a,b,c,d);
getch();
}
sum(int x,int y,int z)
{
int temp;
temp=x+y+z;
return(temp);
}
Similar questions
English,
5 months ago
Science,
5 months ago
Computer Science,
5 months ago
History,
10 months ago
India Languages,
10 months ago
Chemistry,
1 year ago