+ 2
Anyone who knows? I'm still confuse about putting a word "delete" in practice code
You are given a program with commented lines. Make sure that after execution it will output only the lines starting with odd numbers. Get rid of the negative! :)
7 Answers
+ 2
Christian Joseph Marigmen
When you comment a section of code, the compiler ignores it when running the entire code.
As such, commented sections will not produce an output.
You don't need to delete anything.
+ 1
It's about how to increase your chances of getting helpful answers.
I posted the link because I find your question unclear.
Are you asking about a particular exercise? What's the issue with "delete"? Etc.
+ 1
Oh ok. Thanks
0
I think the link you share is about python. ?
0
Yes. It about Comment the "Comment and not to comment" in C++ 5.3 lesson
- 2
#include <iostream>
using namespace std;
int main() {
cout << "1. Famous" << endl;
//cout << "2. Angry" << endl;
cout << "3. Great" << endl;
//cout << "4. Faulty" << endl;
cout << "5. Victory" << endl;
//cout << "6. Hurt" << endl;
return 0;
}
Good Luck