Chemistry, asked by katikelamanaswani996, 10 months ago

can you write a c programe to calculate the sum of 3 numbers.

Answers

Answered by kouliktorafder
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