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 is a static variable...wht is the size when u give sizeof(struct)
What is meant a series inverter?
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
Explain how to manufacture the cmos inverter?
could u plz send me a sample placement paper for hpcl trainee engg exam..(electronics& telecommunication stream)...thnku deepikameena1@gmail.com
Example for negative feedback and positive feedback.
What is fm.
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?
which is the syllabus of the ongc next month exam pls send me on my mail id..
What is tunnel diode?
Define digital system?
Define cut-in voltage of a p-n junction diode?
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
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?
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.....