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

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.

1781


What does it mean when someone says I oop?

574


What is abstraction in oop?

625


What is oops concept with example?

571


What is methods in oop?

535






What is a class oop?

585


What is class and object in oops?

605


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2157


write a programe to calculate the simple intrest and compund intrest using by function overlading

1658


What is new keyword in oops?

585


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(); }

1973


explain sub-type and sub class? atleast u have differ it into 4 points?

1828


Why do we use inheritance?

624


What is object and class in oops?

573


Why is destructor used?

574