#include <iostream>
using namespace std;
int main()
{
char ch;
cout<<"enter the first letter of the color : ";
cin>>ch;
if(ch=='o'||ch=='O')
{
cout<<"compressed gas is ammonia "<<endl;
}
else if(ch=='b'||ch=='B')
{
cout<<"compressed gas is carbon monoxide "<<endl;
}
else if(ch=='y'||ch=='Y')
{cout<<"compressed gas is hydrogen "<<endl;}
else if(ch=='g'||ch=='G')
{cout<<"compreesed gas is oxygen "<<endl;}
else
cout<<"there is no color "<<endl;
return 0;
}
using namespace std;
int main()
{
char ch;
cout<<"enter the first letter of the color : ";
cin>>ch;
if(ch=='o'||ch=='O')
{
cout<<"compressed gas is ammonia "<<endl;
}
else if(ch=='b'||ch=='B')
{
cout<<"compressed gas is carbon monoxide "<<endl;
}
else if(ch=='y'||ch=='Y')
{cout<<"compressed gas is hydrogen "<<endl;}
else if(ch=='g'||ch=='G')
{cout<<"compreesed gas is oxygen "<<endl;}
else
cout<<"there is no color "<<endl;
return 0;
}
0 comments:
Post a Comment