How to print all the 26 alphabets in this order in C.
AbCdEfGh.....
it should print dynamically from a to z and do not print
this using pgm like this print("Ab......");
Use loops or anything to print all alphabets
Answer Posted / jebarose
This can be done by using ASCII value...
ASCII value of A is 65
ASCII value of b is 98
Difference of Ab,Cd,Ef.(etc) is 33
A to C is 2.
This is the logic,while printing use %c,so tht it gets print
as Alphabets.
Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between the local variable and global variable in c?
Write a program to know whether the input number is an armstrong number.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
about c language
What are the two types of structure?
praagnovation
What are the features of the c language?
what is the height of tree if leaf node is at level 3. please explain
What is zero based addressing?
Why ca not I do something like this?
What is the purpose of void in c?
What is the difference between #include and #include 'file' ?
Explain the difference between malloc() and calloc() in c?
What is the use of header files?
What is getch() function?