Basic question regarding C++ in Codeblocks

I am trying to get my cout statement to replace the original cin input line, when I run the program. Thank you for your help.



#include <iostream>
using namespace std;

int main()
{
float a, b, c;
cout << "Enter three numbers separated by a space\n";
cin >> a >> b >> c;

if (a > b && a > c)

cout << a << " is the highest." << endl;

else if (b > a && b > c)

cout << b << " is the highest." << endl;

else if (c > a && c > b)

cout << c << " is the highest." << endl;
Uh what? I have no idea what you are asking
Topic archived. No new replies allowed.