#include <iostream>
using namespace std;
// main function
int main()
{
// ask user to input a or b
cout<<"Enter a or b :\n";
// declare variable
char ch;
// input character
cin>>ch;
// if it is a then display b otherwise diplay a
if(ch=='a')
cout<<"b"<<endl;
else
cout<<"a"<<endl;
}
Get Answers For Free
Most questions answered within 1 hours.