+ 1
what is wrong in this code?
#include <iostream> using namespace std; int main() { string name = "James"; int age = 42; int height = 185.7; cout << "Name: " << name << endl; cout << "Age: " << age; cout << " | Height: " << height; }
4 Respuestas
+ 5
I just realized that int should be replaced with float
+ 3
The output is correct shown, what's the problem?
+ 3
Midas Provide more details
What's the expected output?
+ 3
Good you solved your problem