Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


create a C program that displays one z,two y's,three x's
until twenty six A's.
plzz answer i need it tomorrow.

Answers were Sorted based on User's Feedback



create a C program that displays one z,two y's,three x's until twenty six A's. plzz..

Answer / sujata

int Totchar_count =26;
int cur_postion= 26 ;
int diff=0;
char cur_char ='Z';
do
{
diff = (Totchar_count+1) -cur_postion;
while(diff >=1)
{
printf("%c",&c);
diff--;
}
cur_position--;
cur_char--;
}while(c !='Z'-Totchar_count);

Is This Answer Correct ?    1 Yes 1 No

create a C program that displays one z,two y's,three x's until twenty six A's. plzz..

Answer / d14bbl0

#include<stdio.h>

int main(){
int i,count;

for (i=0;i<26;i++){
for (count = 0;count<i;count++){
printf("%c",(char)('Z'-i));
}
}
return 0;
}

Is This Answer Correct ?    0 Yes 0 No

create a C program that displays one z,two y's,three x's until twenty six A's. plzz..

Answer / vadivelt

Qn seems to be not very clear.. Could u pls post it clearly
so that, can answer.

Is This Answer Correct ?    0 Yes 1 No

create a C program that displays one z,two y's,three x's until twenty six A's. plzz..

Answer / satya

#include<conio.h>
main()
{ int i,j;
char *ptr="z";
clrscr();
for(i=1;i<=26;i++)
{
for(j=1;j<=i;j++)
{
printf("%s",ptr);
}
--(*ptr);
printf("\n");
}
getch();



}

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

prototype of sine function.

2 Answers   Cadence,


void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }

5 Answers  


What is the difference between malloc() and calloc()?

3 Answers  


which will return integer? a) int*s ( ) b) ( int* ) s( ) c) int ( *s ) ( )

1 Answers   C DAC,


difference between my-strcpy and strcpy ?

3 Answers   Geometric Software, IIM, Infosys,


What is the significance of c program algorithms?

0 Answers  


a C prog to swap 2 no.s without using variables just an array?

5 Answers   TCS,


1,4,8,13,21,30,36,45,54,63,73,?,?.

10 Answers   AMB, Franklin Templeton,


What header files do I need in order to define the standard library functions I use?

0 Answers  


Write a program to swap two numbers without using the third variable?

0 Answers  


Given an unsigned integer, find if the number is power of 2?

5 Answers  


Is fortran still used in 2018?

0 Answers  


Categories