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
How do you explain polymorphism?
What is polymorphism explain its types?
What is ambiguity in inheritance?
Why do we use encapsulation in oops?
What is the real time example of encapsulation?
What are the three main types of variables?
What polymorphism means?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
#include
what is the drawback of classical methods in oops?
What is difference between data abstraction and encapsulation?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is encapsulation process?
What is encapsulation in oops?
what is the sylabus for priliminaries?