0

Can someone tell me how is it dome

#include <iostream> #include <string> using namespace std; int main() { string a; string b; cout<<"Enter the first colour"<<endl; cin>>a; cout<<"Enter the second colour"; cin>>b; if(a=red && b=blue){ cout<<"purple"; } if(a=blue && b=yellow){ cout<<"green"; } if(a=yellow && b=red) { cout<<"orange"; } else { cout<<"problem"; } }

19th Jan 2018, 9:48 AM
Fedele Resuli
Fedele Resuli - avatar
2 Answers
+ 3
What exactly do you need help with?
19th Jan 2018, 10:23 AM
blackcat1111
blackcat1111 - avatar
+ 1
dont understand what i did wrong
19th Jan 2018, 2:20 PM
Fedele Resuli
Fedele Resuli - avatar