Son's class help

Hi, my son is taking C++ this semester and is having trouble with Variable Initializations, one question is to write the variable initialization for the following, he has checked his booked, searched stuff and can't find anything.

An interest rate of 6.7%

A sum of 1008

A grade of F.

THANKS so much
1
2
3
float interest_rate = 0.067;
int sum = 1008;
char grade = 'F';

or...
1
2
3
4
5
6
7
float interest_rate;
int sum;
char grade;

interest_rate = 0.067;
sum = 1008;
grade ='F';
Last edited on
Thanks so much, he understands better now. Have a wonderful day!
Topic archived. No new replies allowed.