Banner Ad

    A    L    W    A    Y    S           D    E    S    I    R    E           T    O           L    E    A    R    N           S    O    M    E    T    H    I    N    G           U    S    E    F    U    L   

Monday, May 9, 2011

IPE Lab 4B

#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;

}

0 comments:

Related Posts Plugin for WordPress, Blogger...

your comments