Home > C Programming > Assignments > Questions and Answers
Exercise:
01. | The statement which correctly assigns the value of the variable number1 to the variable total, is | |||||||||||
|
02. | The statement that correctly assigns the sum of the two variables loop_count and petrol_cost to the variable sum, is | |||||||||||
|
03. | The correct statement which divides the variable total by the value 10 and leaves the result in the variable discount, is | |||||||||||
|
04. | The correct statement which assigns the character W to the char variable letter, is | |||||||||||
|
05. | The correct statement which assign the decimal result of dividing the integer variable sum by 3 into the float variable costing, is (Use type casting to ensure that floating point division is performed) | |||||||||||
|