// No return value with argument
#include<stdio.h>
#include<conio.h>
void sum(int, int, int);
void main()
{
int a, b, c, d;
clrscr();
printf("\nEnter value of a: ");
scanf("%d", &a);
printf("\nEnter value of b: ");
scanf("%d", &b);
printf("\nEnter value of c: ");
scanf("%d", &c);
sum(a, b, c);
getch();
}
void sum(int x, int y, int z)
{
int d;
d = x + y + z;
printf("\n\nSum = %d", d);
}
No comments:
Post a Comment