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
Get step-by-step solutions from verified subject matter experts
