c program to find sum
Answers
Answered by
0
Answer:
What is C I don't know because my teacher don't tell me About this
Answered by
0
Answer:
SUM OF TWO NUMBERS
/#include <stdio.h> /* Link section */
int total = 0; /* Global declaration and definition section */
int sum (int, int); /* Function declaration section */
int main () /* Main function */
{
printf (“This is a C basic program \n”);
total = sum (1, 1);
printf (“Sum of two numbers : %d \n”, total);
return 0;
}
int sum (int a, int b) /* User defined function */
{ /* definition section */
return a + b;
}
OUTPUT :
This is a C basic program
Sum of two numbers : 2
I hope this will help ❤❤❤
plz mark brainliest
Similar questions