Question:
write a program for printing when i press a key next to the letter in the alphabetical order can be printed
Answer:
int main() { char key; printf("Enter from which u wnat to see the alphabets "); scanf("%c",&key); do { printf(" %c",key); }while (key++ != 'z'); } Source: CoolInterview.com
Answered by: Nagaraj C L | Date: 9/1/2008
| Contact Nagaraj C L
void main() { char key; printf("Enter the key:"); scanf("%c",&key); key++; printf("%c",key); } Source: CoolInterview.com
Answered by: Ankit | Date: 9/20/2008
| Contact Ankit
void main() { char ch; printf("Enter a Key"); scanf("%c",&ch); if(ch!='z') { do{ printf('Next Key is %c",ch++); }while(ch!='z'); } Source: CoolInterview.com
Answered by: Yuvaram | Date: 10/8/2008
| Contact Yuvaram
void main() { char a; printf("enter any charactar ->"); scanf("%c",&a); if (a!='z') { a++ ; printf("you enterd '%c'and the next alphabets are %c",a); } } Source: CoolInterview.com
Answered by: anuj | Date: 11/20/2009
| Contact anuj
program #include<stdio.h> int main() { char key;
printf("Enter from which u wnat to see the alphabets
"); scanf("%c",&key);
if(key>='A' && key<='Z') { do { printf(" %c",key); } while(key++ !='Z'); } else if(key>='a' && key<='z') { do { printf(" %c",key); } while (key++ != 'z'); } return 0; } Source: CoolInterview.com
Answered by: iranna | Date: 7/31/2010
| Contact iranna
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|