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

WAP to convert text into its ASCII Code and also write a function to decode the text given?

2 Answers  


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  


What is the difference between c and python?

0 Answers  


Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 Answers  


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,






program to find the ASCII value of a number

8 Answers  


Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321

7 Answers   HCL,


write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?

3 Answers   Broadcom, TCS,


Why clrscr is used in c?

0 Answers  


what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175

5 Answers   Wipro,


write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

3 Answers  


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  


Categories