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 is a static variable...wht is the size when u give sizeof(struct)

2113


What is meant a series inverter?

1138


i want do telecom protocol development course from hyderbad convergence training school so what is the scope after doing that course and will i get a good job after doing the course and what will be the minimum package

1809


Explain how to manufacture the cmos inverter?

976


could u plz send me a sample placement paper for hpcl trainee engg exam..(electronics& telecommunication stream)...thnku deepikameena1@gmail.com

1853


Example for negative feedback and positive feedback.

945


What is fm.

997


In the case of baseband signaling, the received waveforms are already in a pulse-like form. Why then, is a demodulator (receiving filter) needed to recover the pulse waveform?

2512


which is the syllabus of the ongc next month exam pls send me on my mail id..

2016


What is tunnel diode?

975


Define digital system?

1014


Define cut-in voltage of a p-n junction diode?

1101


I AM APPERING FOR RRB EXAM FOR SECTION ENGINEER I REQUEST U TO PLZ FORWORD THE PAPER PATTERN AND EVEN PREVIOUS QUESTION PAPER to stamil230@gmail.com

1905


1.Explain 3D radar. 2.Method of mobile signal jamming. 3.Frequency hopping spread spectrum. 4.How does op-amp works in common mode? 5.Which flip flop is known as universal flip flop and why?

2093


Can anyone plzzz tel me how can we generate sinusoidal waveform using 8085 chip??????? plzz reply with corresponding assembly language program........or simply the accurate logic.....

1951