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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I direct output to the printer?

1321


What are the different types of data structures in c?

1166


How can I delete a file?

1067


What is far pointer in c?

1313


What is a far pointer in c?

1047


How do I read the arrow keys? What about function keys?

1086


Explain threaded binary trees?

1158


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1066


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1131


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1950


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1032


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1050


Why clrscr is used in c?

1014


what is bit rate & baud rate? plz give wave forms

1978


Write a program to check prime number in c programming?

1093