Program to print 0 to 9 in cross order

Answer Posted / james

#include<iostream.h>

int main()
{
for(int i=0;i<=9;i++)
{
for (int j = 0; j <=i; j++)
cout << " ";
cout << i << endl;
}
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor overloading in oop?

607


What is destructor oops?

625


What is multilevel inheritance?

727


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1395


2. Give the different notations for the class.\

1594






What is encapsulation selenium?

554


What is polymorphism what is it for and how is it used?

576


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


How Do you Code Composition and Aggregation in C++ ?

24205


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1654


what are the different types of qualifier in java?

1845


What is class encapsulation?

600


What are functions in oop?

586


What is abstract class in oop?

536


Why is abstraction needed?

570