Java: Generate a following @'s triangle
Right-Angle Triangle with @ Symbols
Write a Java program to generate the following @'s triangle.
Test Data
Input the number: 6
Pictorial Presentation:
Sample Solution:
Java Code:
Sample Output:
Input the number: 6 @ @@ @@@ @@@@ @@@@@ @@@@@@
Flowchart:
Java Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a java program to generate a following *'s triangle.
Next: Write a java program to display the number rhombus structure.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics