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
How are variables declared in c?
explain what are actual arguments?
How do I get an accurate error status return from system on ms-dos?
Can the size of an array be declared at runtime?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is the right way to use errno?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
how is the examination pattern?
What are the benefits of c language?
find the sum of two matrices and WAP for it.
What is a program flowchart and how does it help in writing a program?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is #line?
application attempts to perform an operation?
Can a void pointer point to a function?