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"; } }
2 Answers
+ 3
What exactly do you need help with?
+ 1
dont understand what i did wrong