- Harinis home work for the second day is to subtract two numbers, help Harini to solve the proble
CODING ARENA
#include <stdio.h>
int main()
{
int a,b;
float c,d;
scanf("%d%d",&a,&b);
scanf("%f%f",&c,&d);
printf("The Addition of two number is=%d",a+b);
printf("\nThe Addition of two number is=%0.1f",c+d);
return 0;
}
Test Case 1
Input (stdin)4 4 5.5 6.4
Expected OutputThe Addition of two number is=8 The Addition of two number is=11.9
Test Case 2
Input (stdin)-4 5 1.2 1.2
Expected OutputThe Addition of two number is=1 The Addition of two number is=2.4
No comments:
Post a Comment