0
Introduction to Data Types
You are given a program that should output the name and the release year of a famous movie. But the program has errors. Fix the code to get the correct output. https://code.sololearn.com/cVTfb6jDOY8Q/?ref=app //Please help!!!
6 Respuestas
- 2
"1999" is a string litteral not an int (1999 is an int)
+ 2
//VICTORY!!!! 🥳
+ 2
#include <iostream>
using namespace std;
int main() {
string var1 = "Fight Club";
int var2 = 1999;
cout << var1 << " " << var2;
return 0;
}
Good Luck
+ 2
#include<iostream>
using namespace std;
int main()
{
cout<<"movie name is==>The Dragon"<<endl;
cout<<"release date===> 1999";
}
+ 1
Angelo - Thank you. Let me try again.
0
#include <iostream>
using namespace std;
int main() {
string var1 = "Fight Club";
int var2 = 1999;
cout << var1 << " " << var2;
return 0;
}