WAP TO PRINT A CHARACTER B/W A TO J AND PRINT NEXT 4 CHARACTER


#include<iostream.h>
#include<iostream.h>
Void main()
{    char ch,ch1,ch2,ch3,ch4;
     Cout<<”Enter a character b/w A and J:”;
     Cin>>ch;
     Int num=ch;
     Ch1=ch+1;
     Ch2=ch+2;
     Ch3=ch+3;
     Ch4=ch+4;
     Cout<<”\n Next four character are:”;
     Cout<<”\n”<<ch1<<”\n”;
                          <<ch2<<”\n”;
                          <<ch3<<”\n”;
                          <<ch4<<”\n”;
     getch();

}

Comments

Popular Posts