76 327
Assignments Done
Successfully Done
In May 2019

Answer to Question #14452 in C++ for Damion

Question #14452
I need to display /\/\Computer science rules/\/\ in cmd..
I am using code blocks.
this is what i have so far

#include <iostream>
using namespace std;

int main()
cout << "'/\/\Computer science rules!/\/\'" << endl;

But all that shows up is //computer science rules!//
Expert's answer
#include <iostream>
using namespace std;

int main()
cout << "'/"<< char(92) << "/"<< char(92) << "\Computer science rules!/"<< char(92) << "/"<< char(92) << "'" << endl;
& return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions