answersLogoWhite

0


Best Answer

12345

1234

123

12

1

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Write a java program to print the following output using the for loop

1

2 2

3 3 3 3

4 4 4 4

5 5 5 5 5

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Write the regular for loop. Inside the for loop, place an if statement - if the number is 3, repeat the output once more.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a java program to print the following output using the for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


Write a c program to print the following pyramid 1 121 1231 12321 1234321?

123454321


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


Write a unix program to print print a pattern?

echo 'print a pattern'


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you capture the output of C program in to another C program?

HIYou can first include the 1st program in ur 2nd program using # include and then whatever be the output from frst it can be used in second program.pankajThat's what popen is good for. Read the manual.


How can print screen output in borland c plus plus?

Redirect the output to a file via the command line. Print the file. For example, if the program is named foo.exe, the output can be redirected to a file named foo.txt with the following command: foo.exe > foo.txt Everything sent to std::cout by the program will now be sent to the file instead. Everything sent to std::cerr will be displayed on screen as normal.


Write a program using iostreams to take as input two multi-dimensional arrays and print their sum as output Matrix Addition in Matrix format?

http://www.assignmentsclub.com/


How do you write a program to print the first n multiples of 7?

Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j


How to print the code of a program in the output terminal when the program is being executed in cpp?

Such a program is called a Quine. http://en.wikipedia.org/wiki/Quine_(computing)


Write a program to print an astrick in 1st line 2 astricks in 2nd line and so on 25 astricks in 25th line?

Here is a simple Python program to print asterisks as described: for i in range(1, 26): print('*' * i) This will output asterisks from 1 to 25 as required.


Write a c program to print roman letters?

good morning