Problem Description
Add two numbers using pointersCODING ARENA::
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=a+b;
printf("The sum of the entered numbers is=%d",c);
return 0;
}
Test Case 1
Input (stdin)5 4
Expected OutputThe sum of the entered numbers is=9
Test Case 2
Input (stdin)9 10
Expected OutputThe sum of the entered numbers is=19
No comments:
Post a Comment