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 type of waves exactly the radiations are ?

1736


Pls tell me when will coming ssc scientist assistant result...how many marks for elgilibity.. Am a minority girl oc

1393


What are the popular ic packages available?

1153


Where are the successive approximation type adc’s used?

1069


"11101111" when that bit oriented message transmitting from sender to receiver.how is it calculate parity bit and how is it show bit stream that would be transmitted..by even parity error detection scheme..pls send me an answer..very important,,

2006


Define what is point contact diode?

1078


I am abscent to the external exam due to illness then what happen

1910


Explain why the input impedance of op-amp is so high?

1158


Insights of tri-state inverters?

1821


Please send RRB section engineer's signal paper of past 20 years.This is very urgent.I am giving section engineer exam this syear

2198


What are the key inputs and factors considered to plan the number of SGSN/GGSN if you have to set up a Greenfield network?

2990


What are the limitations of the basic integrator circuit?

1366


charge at rest result in e.f and charge in motion result in m.f then how can an accelerated charge give rise to emf wave? then there should be no e.f due to acc charge as it rise from charge at rest?

2004


What happens when an ammeter is connected across the circuit?

1075


what is the reason of RDI alarm in microwave link?

4811