Question: solve in c + + without using any other libraies Add number 1 _ int and number 2 _ int together and print the result
solve in c without using any other libraies Add numberint and numberint together and print the result as an integer value.
Subtract numberfloat from numberfloat and print the result as a floatingpoint value.
Multiply numberint by numberfloat and print the result as an integer value.
Divide numberint by numberint and print the result as an integer and a floatingpoint value Ask yourself: What happens when you divide an integer by an integer? Does the result change because you print it as a floatingpoint number?
Divide numberint by numberfloat and print the result as an integer and a floatingpoint value Ask yourself: How does this compare to the previous operations? We are now dealing with mixed data types
Explicitly cast numberint as a floatingpoint value and divide by numberint. Print the result as a floatingpoint value.
Try to mod numberfloat by numberfloat. Does the program compile? If not, fix it so that it does.
Determine if numberint and numberint are even or odd. Print if even and if odd. You may not use if statements. Use the mod operator instead.
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
