1. Engineering
  2. Computer Science
  3. 2 points what is the value of the expression 25...

Question: 2 points what is the value of the expression 25...

Question details
  1. (2 points) What is the value of the expression 25 % 3?
    1. 8
    2. 1
    3. 0
    4. undefined
  2. (2 points) Explain in detail what the following instruction does (assuming i is declared as int):
cin >> i;
  1. (2 points) Assuming that two floating point numbers have been saved in the variables num1 and num2, write a chunk of program code that will display the integer result of the sum of num1 and num2. For example, if num1 contains 2.4 and num2 contains 2.5, then the value 4 should be displayed.
  1. (2 points) Write a chunk of program code that asks the user to enter two floating point numbers and saves the values in two float variables called val1 and val2.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution