So basically I'm taking an intro tp programming class and we've been taught the basics (loops, if statements, variable types etc.) I'm solving a program where I have to ask the user to enter 6 different temperature values, and then print out the maximum, average and range of the 6 values.
How and where should I store these 6 numbers?
cout<< "Enter 6 diff numbers" << endl;
float numbers;
cin >> numbers;
for ( .... i_++)
max = ;
min = ;
cout << .. << .... << endl;
//This should not help because float can only keep one number stored and not 6. How should I do this without using any sort of arrays, functions etc. ?
I was thinking using substrings and declaring it like a string or something??
Thanks for all your help.