1234554321
1234 4321
123 321
12 21
1 1
12 21
123 321
1234 4321
1234554321

Answer Posted / mahesh m

#include<stdio.h>
int main()
{
int i,j,n=5,a;
for (i=1;i<5;i++)
{
for(j=1;j<=n;j++)
{
printf("%d",j);
a=j;
}
for(int k=1;k<=n;k++)
{
printf("%d",a);
a--;
}
n=n-1;
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is persistence in oop?

655


What does no cap mean?

584


What is stream in oop?

833


What is overriding vs overloading?

575


What is static in oop?

585






What is a null tree?

619


What is the difference between static polymorphism and dynamic polymorphism?

571


What do you mean by abstraction?

603


What is static modifier?

623


i got a backdoor offer in process global,Bangalore..Can i work with it?

2316


Write a program to reverse a string using recursive function?

1784


What is the importance of oop?

601


Can we create object of interface?

594


What language is oop?

589


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6477