1. Explain which data types you could use to represent each of the following kinds of data. (Present the proper data type you can choose and explain why.)
A. An exam score –
B. Annual rainfall measured in inches
C. The distance traveled by a rocket measured in meters
D. An interest rate -
E. The brand name of a computer
그냥 각각 어떤 자료형을 사용해야 하는가랑 그 이유만 간단히 적어주시면 되요 ㅠㅠ
2.
Write two fragments of code that will compute the sum of first n positive odd integers using for statement and while statement.