Thursday, September 23, 2010

PROGRAMME PRINT HELLO


#include<iostream.h>
                Class abc
                {
Int c;
Char  s;
Public:
                Void aaa()
{
                Cout<<”do you want to print”
                Cout<<”enter y for YES and n for NO”;
                Cin>>c;
Switch(c)
{
Cout<”enter which you want to print”>
Cin>>s;
Cout<<s;
}
}
};
Int main()
{
Abc n;
n.aaa();
return(0);
}

No comments:

Post a Comment