Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

Answers were Sorted based on User's Feedback



Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?..

Answer / subhammondal551

#include<stdio.h>
#include<conio.h>
void main()
{
int i,sum=65;
clrscr();
printf("*");
for(i=1;i<=26;i++)
{
sum=sum+1;
printf("%c",sum);
}
getch();
}

Is This Answer Correct ?    5 Yes 0 No

Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?..

Answer / muthyala nagaraju

#include<stdio.h>
#include<conio.h>
main()
{
int i;
char ch='A';
for(i=65;i<=97;i++)
{
printf("%c",ch++);
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What does c mean in standard form?

0 Answers  


Explain what is wrong with this program statement? Void = 10;

0 Answers  


what is reason of your company position's in india no. 1.

0 Answers   Accenture, TCS,


Are there namespaces in c?

0 Answers  


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

0 Answers  


Explain what a Binary Search Tree is.

3 Answers  


can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?

2 Answers  


#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 Answers   HCL,


What is the purpose of & in scanf?

0 Answers  


What is the use of the sizeof operator?

2 Answers  


What is a substring in c?

0 Answers  


what is use of malloc and calloc?

0 Answers  


Categories