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
What are the fundamental properties of boolean algebra?
Define offset voltage as applied to an op-amp.
What is a weighted code?
Discuss the need for biasing the transistor.
What is the difference between synchronous and asynchronous counters?
What is the difference between Synthesised Frequency Hopping and Base Band Frequency Hopping?
how to interface hall effect sensor with 8051 microcontroller?
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?
What are the specifications of the scr ?
Explain why is the plastic dip ic package most widely used?
What is the zener breakdown?
Define why half-wave rectifiers are generally not used in dc power supply?
What are the disadvantages of ac voltage controllers?
why -48v is used for BTS in telecom?
what should I refer for examination of BSNL-TTA. Please suggest me good reference...so that I can clear this exam.