Problem Description
Helen wants to find the sum of apples in 2 baskets that she is carrying to the market. You need to write a C program to help her find the total number of apples. Use functions in C to write this program.CODING ARENA::
#include <stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a+b);
return 0;
}
Test Case 1
Input (stdin)2 3
Expected Output5
Test Case 2
Input (stdin)6 7
Expected Output13
No comments:
Post a Comment