how to write a java program for an output
****0 ***01 **012 *0123 01234

Answer Posted / adeel

#include<iostream>

using namespace std;

int main()
{
int i,j;
for(i=0; i<=5; i++)
for(j=1; j<=i; j++)

cout<<j;

system("pause");
return 0;
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1933


What are objects in oop?

853


What is polymorphism in oop example?

766


What is the renewal class?

2442


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2386


Why is object oriented programming so hard?

846


Can you explain polymorphism?

849


Why interface is used?

772


What is difference between multiple inheritance and multilevel inheritance?

910


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1995


Give two or more real cenario of virtual function and vertual object

2094


What are the 4 pillars of oop?

903


What is a superclass in oop?

929


What is an interface in oop?

791


What is the fundamental idea of oop?

881