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...

how do i write program like one shown
1234567654321
123456 654321
12345 54321
1234 4321
123 321
12 21
1 1

Answer Posted / cinu

#include<stdio.h>
int main()
{
int i,j,n;
printf("Enter no");
scanf("%d",&n);
for(i=0;i<=n;i++)
{

for(j=1;j<=n-i;j++)
printf("%d",j);
for(j=0;j<2*i;j++)
printf(" ");
for(j=n-i;j>0;j--)
printf("%d",j);

printf("\n");
}
}

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the fundamental properties of boolean algebra?

1153


Define offset voltage as applied to an op-amp.

1150


What is a weighted code?

1154


Discuss the need for biasing the transistor.

1103


What is the difference between synchronous and asynchronous counters?

1129


What is the difference between Synthesised Frequency Hopping and Base Band Frequency Hopping?

3513


how to interface hall effect sensor with 8051 microcontroller?

3987


1.Introduce yourself by telling your name ,SSC,HSC, degree marks n colleges,something about your family and interests. 2.Tell about your favourite subjects. 3.Tell how satelite communication works? 4.what you mean by handoffs in mobile communication.tel its types. 5.what you mean by signal fading?tell the factors affecting it and also tell the remedies to avoid it. 6.why the microwaves are used? 7.Draw the GSM architecture? 8.What u mean by Antenna?What are its basic components? 9.why you are interested to work in this company? 10.can you work anywhere anytime as per the our need?

2625


What are the specifications of the scr ?

1215


Explain why is the plastic dip ic package most widely used?

1196


What is the zener breakdown?

1052


Define why half-wave rectifiers are generally not used in dc power supply?

1223


What are the disadvantages of ac voltage controllers?

1161


why -48v is used for BTS in telecom?

2170


what should I refer for examination of BSNL-TTA. Please suggest me good reference...so that I can clear this exam.

2027