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
What is persistence in oop?
What does no cap mean?
What is stream in oop?
What is overriding vs overloading?
What is static in oop?
What is a null tree?
What is the difference between static polymorphism and dynamic polymorphism?
What do you mean by abstraction?
What is static modifier?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Write a program to reverse a string using recursive function?
What is the importance of oop?
Can we create object of interface?
What language is oop?
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.