Define an integer variable itotal with a value of 0 Define a real (floating) variable total with a value of 0.0 Define an integer variable five with a value of 5 Define a real (floating) variable half with a value of 0.499 Define as many character variables as you need and assign them the letters of your first name Use the variables above to: Output your first name on one line calculate half times five and assign it to itotal calculate half times five and assign it to total Output “five times one half is “,itotal Output “five times one half is “,total |
int itotal = 0;
float total = 0.0f;
int five = 5;
float half = 0.499f;
char N = 'N', A = 'A', M = 'M', E = 'E';
(Edit to your own name)
|
|