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 property in oops?

567


What is interface in oop?

662


which feature are not hold visual basic of oop?

1723


What is inheritance and how many types of inheritance?

618


Write a program to sort the number with different sorts in one program ??

1914






Whats is abstraction in oops?

591


Why do while loop is used?

575


How do you achieve polymorphism?

614


What is encapsulation example?

545


What is difference between inheritance and polymorphism?

571


Can private class be inherited?

617


Is this job good for future? can do this job post grduate student?

1692


What is abstraction and encapsulation?

570


any one please tell me the purpose of operator overloading

1965


Why is oop better than procedural?

604