English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to have a program that analyses when i enter "a" it says 1,"b" it says 2,..."z" it says 26.so i really need it 4 2day.

2007-11-29 22:36:50 · 1 answers · asked by dereje T 2 in Computers & Internet Software

1 answers

#include

void main()
{
char cha;

cout<<"Enter the character< cin>>cha;

if cha= 1 then
cout<<'a'
else
if cha=2 then
cout<<'b'
.
.
.
else cha= 26 then
cout<<'z'

}

i think u can get the logic here it almost done u can polish it if u like using a loop all de best

2007-11-29 22:59:12 · answer #1 · answered by sun 2 · 0 0

fedest.com, questions and answers