short SmallNumber;
int NormalNumber;
long BigNumber;
unsigned int NormalPositiveNumber;
int a,b,c;
a = 3;
b = -a;
c = +b; // really does nothing
a = b - c;
c = b + a;
int a;
float b;
char c;
b = float(a); // c++ style
b = (float) a; // c style
a = int(b);
a = (int) b;
a = int (c);
int a;
float b;
char c;
b = a;
a = b;
a = c;
The two example programs from class.
Problem: Write a program that will turn a measurement in inches to Miles, yards, feet and inches
| Unit | conversion |
| 1 Mile | 63360 inches |
| 1 Yard | 36 inches |
| 1 Foot | 12 inches |