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 / nitin garg
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main(){
char ch[26];
int a=65,b=98;
for(int i=0;i<26;i++)
{
ch[i]=a;
printf("%c ",ch[i]);
i++;
a=a+2;
ch[i]=b;
printf("%c ",ch[i]);
b=b+2;
}
getch();
return(0);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Lists the benefits of c programming language?
Explain zero based addressing.
What are the advantages of external class?
How can I find the modification date and time of a file?
What is the use of sizeof?
What is volatile variable in c?
Do pointers need to be initialized?
Why main function is special give two reasons?
What is difference between static and global variable in c?
Are the variables argc and argv are always local to main?
What is a structural principle?
What is wrong with this program statement?
What does the format %10.2 mean when included in a printf statement?
Explain what is wrong in this statement?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures