Let me show you a problem that introduces floating-point arithmetic. You'll read a temperature in Celsius and convert it to Fahrenheit using the formula .
This problem teaches you about decimal numbers and type selection. Temperature can have decimal values like 36.5 degrees, so you can't use int.
You need double to handle fractional parts. You'll also learn about operator precedence. The formula has multiplication, division, and addition.
Understanding which operation happens first is necessary for getting the right answer.