Question: Write a C + + program where you declare an integer variable a and a float variable b . Assigns values to these variables. Calculates
Write a C program where you declare an integer variable a and a float variable b
Assigns values to these variables.
Calculates the sum of a and b and stores it in a float variable sum.
Calculates the product of a and b and stores it in an integer variable product using
explicit type casting.
Displays the values of sum and product.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
