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 class in oop with example?
What is meant by oops concept?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What are the two different types of polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Why do while loop is used?
What does I oop mean?
What is cohesion in oop?
can we make game by using c
What are the benefits of interface?
What is oops and its features?
write string class as your own class in java without using any built-in function
Why is object oriented programming so hard?
What is a function in oop?
Whats oop mean?