Beruflich Dokumente
Kultur Dokumente
Problem Your summer surveying job requires you to study some maps that give distances in kilometers and some that use miles. You and your coworkers prefer to deal in metric measurements. Write a program that performs the necessary conversion.
Data Types
Identifiers (Variables)
Used to store data by the program (user defined) Valid identifiers - letter, scale1, scale_1 Invalid identifiers 1member, const, memb er
int
(integers)
int long
int mynum;
9 15 19
float
(real numbers)
(boolean)
char
(Characters)
Represent characters A a 2
Declarations
Examples
char response; int element; float score; float temperature; int i; int n; char c;
Constant Declarations
Types of constants
integer float char bool