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 are the stoge class in C and tel the scope and life time of it?

2 Answers   Tech Mahindra,


What is table lookup in c?

0 Answers  


#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

6 Answers   NDS,


Write a program to print “hello world” without using semicolon?

0 Answers  


Simplify the program segment if X = B then C &#8592; true else C &#8592; false

0 Answers  


What is volatile variable in c with example?

0 Answers  


What is the difference between class and object in c?

0 Answers  


How can I find the modification date of a file?

0 Answers   Celstream,


Why we use break in c?

0 Answers  


the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0

1 Answers  


What is the scope of static variables?

1 Answers  


print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20

8 Answers   TCS,


Categories