Question: #include main() { int num1, num2; printf(Enter First number: ); scanf(%d,&num1); printf(Enter Second number: ); scanf(%d,&num2); printf(Sum is %04d, num1 + num2); return 0; }

#include

main()

{

int num1, num2;

printf("Enter First number: ");

scanf("%d",&num1);

printf("Enter Second number: ");

scanf("%d",&num2);

printf("Sum is %04d", num1 + num2);

return 0;

}

How ti modify the above program to add numbers of data types float and double. and it is in C

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!