answersLogoWhite

0


Best Answer

in java,, class floydstriangle
{
public void main()
{
int a,b,c=1;
for(a=1;a<=4;a++)
{
for(b=1;b<=a;b++)
{
System.out.print(c);
c++;
}
System.out.println();
}
}
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get a output like 1 23 456 78910?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you get the output like 1 23 456 in vbscript?

you want to output "1 23 456" in VB If you are making a console application then do the following: console.writeline("1 23 456") console.read() 'This command makes the console pause until a button is clicked If you are using a windows form application, open the form.load sub ( by double clicking on it ) and add the following code: msgbox("1 23 456") Anyways theres another way, by adding a label and either changing its Text property in the properties bar or adding the following code into form.load sub: label1.text = "1 23 456" I hope that helped.


How do you get the output like 1 23 456?

When you send some text as output you can insert space sign " " and also there is a tab operator.


What are the factors of 456?

456 = 23 x 3 x 19


How many hundreds in 23 456?

234.56


Is 23 456 a prime number?

figuring you mean 23,456..no because 2 can go into it figuring those are two separate numbers, then 23 is prime and 456 is not


What is 456 divided by 23?

19.8261


What is the solution to 456 divided by 23?

19.8261


What is 1 plus 23 plus 456 plus 7890 plus 0987 plus 654 plus 32 plus 1?

1+23+456+7,890+987+654+32+1=10,044. You add it in bits: 1+23=24; 24+456=480; 480+7,890=8,370; 8,370+987=9,356; 9,356+654=10,011; 10,011+32=10,043; and 10,043+1=10,044.


How do you get the output 1 in first line 23 in next line and 456 in next line and so on?

It can be done with dark magic or a double loop: num= 0; for (line=1; line&lt;=7; ++line) { for (i=1; i&lt;=line; ++i) { printf ("%d", ++num); } putchar ('\n'); }


What is the LCM of 99 456 867?

The LCM of 99, 456 &amp; 867 is 3 99 = 32 x 11 456 = 23 x 3 x 19 867 = 3 x 172 LCM = lowest power of the common primes of the factorisations multiplied together &rArr; LCM = 3


How many 100 is there in 23 456?

There are 234 whole hundreds in the number 23,456.


What is 34 567 x 23 456 -1 000 000?

It is so simple and quick to get the answer if only you could be bothered to use your calculator. The answer is 809,803,552