+ 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! :)

8th Sep 2021, 12:43 AM
Christian Joseph E Marigmen
Christian Joseph E Marigmen - avatar
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.
8th Sep 2021, 4:35 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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.
8th Sep 2021, 12:59 AM
Simon Sauter
Simon Sauter - avatar
+ 1
Oh ok. Thanks
8th Sep 2021, 4:37 AM
Christian Joseph E Marigmen
Christian Joseph E Marigmen - avatar
8th Sep 2021, 12:48 AM
Simon Sauter
Simon Sauter - avatar
0
I think the link you share is about python. ?
8th Sep 2021, 12:54 AM
Christian Joseph E Marigmen
Christian Joseph E Marigmen - avatar
0
Yes. It about Comment the "Comment and not to comment" in C++ 5.3 lesson
8th Sep 2021, 1:03 AM
Christian Joseph E Marigmen
Christian Joseph E Marigmen - avatar
- 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
25th Jan 2022, 10:48 AM
Muhammad Alif Deva Rizqon
Muhammad Alif Deva Rizqon - avatar