Pranav intelligent in playing riddle with numbers so, he gave his sister a puzzle to solve in which she need to solve by adding the left side integral part of two decimal numbers. Explanation: Raju gave his sister two decimal numbers : 23.44 and 33.22 , His sister need to identify the left side integral part of given numbers are 23 and 33 . Finally the added output value is 56. Input and Output Format: Refer sample input and output for formatting specification. All float values are displayed correct to 2 decimal places. All text in bold corresponds to input and the rest corresponds to output. Test Case 1 Input (stdin) 12.55 11.56 Expected Output sum=23 Test Case 2 Input (stdin) 0.11 0.11 Expected Output sum=0
#include <stdio.h> int main() { float a,b; int c,d,e; scanf("%f%f",&a,&b); d=a; e=b; c=d+e; printf("sum=%d",c); return 0; }