Comment

Kathiravan J
Triangle,
September 2, 2008 at 5:50 PM

******
*****
****
***
**
*
It is taking the input Eg : 6 from the user
Then In the integer there is a method called ParseInt with the help of the parseInt the for loop is been executed if a= 6 then i=6 & j=1 then the o/p will be ****** if i++ & J++ the loop will be reduced one by one
View All Comments | View Tutorial
Related Tutorial and Articles
HTML Questions

triangle
triangle  how to draw triangle numbers with stars in html with the help of javascript

Java Beginners

triangle
the sides of a triangle If they can form a triangle, determine and print if they can also form the sides of a right-angle triangle The class should include proper data

Java Beginners

Triangle program
Triangle program  1 121 12321 1234321 123454321 kindly give the code 4 this program in java    1 121 12321 1234321 write a program for this triangle    1 121 12321 1234321 write a program

Java Beginners

TRIANGLE OF *S AT THE BOTTOM RIGHT!!! - Java Beginners
TRIANGLE OF *S AT THE BOTTOM RIGHT!!!  My Question is to : "Write a program that inputs one integer m and outputs an m-line high triangle of *'s... to make the triangle at the right side but couldn't do so. Can you please solve

Java Beginners

how to perform a equqlity triangle in java
how to perform a equqlity triangle in java  below the output 1 2 3 4 6 5 7 9 10 8

Java Code Examples

Java create triangle pattern
Java create triangle pattern In this tutorial, you will learn how to create a triangle shape. For this, user is allowed to enter number of lines to display the triangle of that length and a symbol to show the triangle in a particular

Java Beginners

Java draw triangle draw method?
Java draw triangle draw method?  hi how would i construct the draw method for an triangle using the 'public void draw (graphics g ) method? im...; Here is an example that draws a triangle using drawPolygon method. import

Java Beginners

triangle output
triangle output  program to get the following output

General

How to calculate area of triangle
of triangle. Description of this program  This is very java programming... Area of Triangle       In this section we will learn how to calculate area of triangle. We

Java Beginners

A Program To Print A Equilateral Triangle
A Program To Print A Equilateral Triangle  Write A program to Print Following In Java : 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Java Beginners

how to perform a equqlity triangle in java
how to perform a equqlity triangle in java  below the output 1 2 3 4 6 5 7 9 10 8   Here is an example of pattern like 1 2 3 4 5 6 7 8 9 10 Example : public class NumberTriangleClass{ public static void

Development process Questions

Triangle pgm
Triangle pgm  how to write code fa this??? 1 222 33333 4444444 55555555 666666666

Java Beginners

triangle output
triangle output  program to get the following output: * *   Hi Friend, Please specify the pattern properly. Thanks

Development process Questions

pascal triangle
pascal triangle   given string : char str[]="123456789"; write a program in 'c'-language that displays the following: 1 232... the following link: C Pascal's Triangle Thanks

Java Beginners

Code for a triangle.....
Code for a triangle.....   1 1 5 1 1 5 25 5 1 What is the source Code for above output

Java-Tutorials

Java Program Floyd's Triangle
Java Program Floyd's Triangle In this section you will read about how to write a Java program to print Floyd's triangle. This tutorial is about printing a Floyd's triangle in Java. Here you will learn about all the steps

Java Beginners

Triangle problem
Triangle problem  what's the logic for create pattern program how can i create any pattern program with in minute. like this 1 2 5 3 6 8 4 7 9 10

Java Tips and Examples

Write a program to construct a triangle with the ?*?
'*'. First of all make a class named 'triangle' under the Java I/O package... Write a program to construct a triangle with the ?*?       This lesson in Java

Java Beginners

Triangle Program
Triangle Program  i want program code for 1 2 3 4 5 6 7 8 9 10 any body please help me   public class Triangle { public static void main(String[] args

Java Beginners

triangle shape
triangle shape  Hi, I have to create a program which its output is: + ++ +++ ++++ and this what I did so far : package symbols; import java.util.*; public class Symbols { public static void main(String[] args) { Scanner

Java Beginners
Java Beginners
Travel

Golden triangle tours
Golden triangle tours  Hi, Can anyone tell me something about Golden triangle tours? Thanks   Hi, Golden Triangle tour cover Delhi, Agra and Jaipur. Please check India Golden Triangle Tours. Thanks

Travel

Golden Triangle Tours
Golden Triangle Tours  What is golden triangle tours ..and how it is related to the Agra and Jaipur and Delhi trip? Please explain me. Thanks

Java Beginners

how to write a program in java to print numbers in equalateral triangle
how to write a program in java to print numbers in equalateral triangle  the output must be 1 324 76589   Here is an example of pattern 1 2 3 4 5 6 7 8 9 Example: public class NumberTriangle{ public

Java Beginners

How to print a equilateral triangle patren with numbers
How to print a equilateral triangle patren with numbers  I figure out how to use for loop to print the triangle but i couldn't get the exact values as this http://im37.gulfup.com/FzrOb.jpg could you please help me

Java Beginners

print rectangle triangle with ?*? using loops
print rectangle triangle with ?*? using loops   * * * * * * i want print like this.what is the code?   import java.lang.*; class Traingles { public static void main(String args[]) { for(int i=1;i<=5

C# Tutorial

C Print Pascal Triangle
C Print Pascal Triangle In this section, you will learn how to display Pascal's triangle. A Pascal's triangle is a geometric arrangement of the binomial coefficients in a triangle.The rows of Pascal's triangle are conventionally

Travel

Golden Triangle Tour - Enchanting Golden Triangle Tour
The best part of Golden Triangle Tour is that all these three cities are just four to five hours driving distance from each other

General

Draw a Triangle using a Line2D
Draw a Triangle using a Line2D       This section illustrates you how to draw a triangle using a Line2D. To draw a triangle, we are using Line2D class of package java.awt.geom.

Travel

India Golden Triangle Tours
India Golden Triangle Tours Golden Triangle India is a heady concoction.... These three destinations forming a triangle offer best of India in a single platter... and a plethora of monuments giving a fine reflection of its glory, make golden triangle

J2EE

J2ME Draw Triangle
J2ME Draw Triangle      ... application, we are using canvas class to draw the triangle on the screen. In this example you will learn how to draw a triangle and filling it with particular color

Development process Questions

C Program to Print Pascal Triangle - Development process
C Program to Print Pascal Triangle  I want C Program to Print Pascal Triangle.  Hi Friend, Try the following code: #include #include void main(){ int a[15][15],i,j,rows,num=25,k; printf("\n enter

Travel

Golden Triangle Tour with Varanasi
Golden Triangle Tour with Varanasi Duration: 8 Nights /9 Days... Golden triangle tour with Varanasi, and visit various tourists attractions... of Akshardham temple a well-acclaimed Qutub Minar. Day 03 of Golden Triangle

Travel

Golden Triangle Tours India
. The next destination in your golden triangle travel package is Agra. The city... and Fatehpur Sikri. The third destination in your Golden Triangle tours in India... Mahal, Jantar Mantar, Amber Fort and many more. Your Golden triangle

Travel

What will be the total cost for Golden Triangle Package tour from Delhi
What will be the total cost for Golden Triangle Package tour from Delhi   Hi, Can anyone give me the idea about Golden Triangle Package tour cost from New Delhi? I want's to travel by car. Thanks

Travel

India Golden Triangle Tours with Ranthambore
Golden Triangle Tour with Ranthambore Duration: 6 Nights 7 Days Destinations Covered: Delhi- Mathura- Agra-Jaipur-Ranthambore-Delhi Day 01: Arrive Delhi Our representative will receive you at Delhi airport and transfer to your

Travel

Golden Triangle Travel India
Golden Triangle Travel India Destinations: Delhi-Agra-Karauli-Fatehpur Sikri-Jaipur Duration: 06 Nights / 07 Days Day 01: Arrive at Delhi On arrival in Delhi our representatives will receive you and transfer to the hotel. Unwind

Java Beginners

java program - Java Beginners
java program  what is the program the a simple program in Java... of the triangle and then the program; a)First determines whether the 3 integers entered represent the sides of a right-angled triangle, equilateral triangle, isosceles

Travel

Golden Triangle Holidays in India
Golden Triangle Holidays India Destination Covered : Delhi, Agra and Jaipur Day 01: Arrive Delhi On arrival in Delhi our representative will receive you at the airport. Overnight stay at hotel. Day 02: New Delhi (Breakfast

Travel

Golden Triangle Tour with Haridwar and Rishikesh
Golden Triangle Tour with Haridwar & Rishikesh Duration: 7 Nights 8 Days Destinations Covered: Delhi- Rishikesh-Haridwar ?Agra-Jaipur-Delhi. Day 01: Delhi Arrival On arrival at Delhi airport our representative will receive

Travel

Golden Triangle Tour India by Rail
Golden Triangle Tour India by Rail Destinations Covered : Delhi, Agra... train for your Golden Triangle Tour of India . On arrival; transfer to hotel... of Jaipur to catch Agra bound train for Golden Triangle Tours of India by luxury

Travel

Golden Triangle Tours with Shimla & Manali
Golden Triangle Tour with Shimla & Manali Duration : 12 Nights 13 Days Destinations Covered: Delhi-Agra-Jaipur-Delhi-Kasauli-Shimla-Manali-Kullu... and gateway to the golden triangle tours in India. On arrival at the Delhi

Travel

The Golden Triangle Tours with Kerala India
Golden Triangle and Kerala Tour Duration : 09 Nights / 10 Days Destinations... golden triangle and Kerala tours. On Arrival our representative will receive... - Departure On the last day of your golden triangle and Kerala tours take your

Travel

India Golden Triangle Tours With Udaipur
India Golden Triangle Tours With Udaipur Duration: 07 Nights / 08 Days Destinations : Delhi-Agra-Jaipur-Udaipur Day 01: Arrival-Delhi On Arrival at Delhi airport, Traditional Indian welcome with folded arm. Warm reception

Travel

South India Golden Triangle Tours
South India Golden Triangle Tour Duration: 12 Nights /13 Days Destinations Covered: Delhi- Jaipur- Agra-Delhi-Bangalore-Mysore-Ooty-Bangalore. Day 01:Delhi Arrival On your arrival at Delhi airport/railway station, you

Travel

Golden Triangle Vacation Tour India
Golden Triangle Vacation Tour India Duration: 06 Nights / 07 Days... Triangle Vacation tour program. Dinner and overnight stay at the hotel... and overnight stay at hotel. Day 05: Jaipur of Golden triangle Vacation Tour

Travel

Golden Triangle Tour with Amritsar Golden Temple
Golden Triangle Tour with Amritsar Golden Temple Duration : 7 Nights 8 Days.... Day 02: Sightseeing of Delhi The golden triangle tours with Amritsar... to Agra Your second day of India Golden triangle tour with Amritsar is meant

Java Beginners

java beginners - Java Beginners
java beginners   the patteren u received is not the actual patteren... in proper formate to you . it was in upside down triangle form . at the top... 'a' will be moving towards left forming a triangle . id possible tell me how

Travel

India Golden Triangle With Kerala Backwater Tours
Golden Triangle Tour with Kerala Backwaters Duration: 14 Nights/ 15 Days Destinations Covered: Delhi-Agra-Jaipur-Delhi-Cochin-Munnar-Kumarakom-Alleppey... fort and Jama Masjid. As a part of Golden Triangle Tour with Kerala package you

Travel

India Golden Triangle Tours with Orchha & Khajuraho
Golden Triangle Tour with Orchha, Khajuraho and Varanasi Duration : 11 Nights 12 Days Destinations Covered: Delhi- Jaipur- Agra-Gwalior-Orchha-Khajuraho-Varanasi-Delhi. Day 01:Delhi Arrival On your arrival at Delhi airport; our

Travel

Golden Triangle Tour with Mata Vaishno Devi
Golden Triangle Tour with Mata Vaishno Devi Duration : 9 Nights 10 Days Destinations Covered: Delhi-Agra-Jaipur-Delhi-Vaishno Devi-Delhi Day 01... triangle tour with Mata Vaishno Devi package, you will head

Travel

Golden Triangle Tour Packages with Mussoorie India
Golden Triangle Tour with Mussoorie Destinations Covered: Delhi-Agra- jaipur- Mussoorie- Rishikesh - Haridwar Duration : 11 Days / 10 Nights Day 01: Arrival in Delhi On arrival at international airport you will be transferred

J2ME

J2ME Draw Triangle, Rectangle, Arc, Line Round Rectangle Example
J2ME Draw Triangle, Rectangle, Arc, Line Round Rectangle Example... tutorial, we are going to describe how to draw a triangle, rectangle, arc, line...;Draw Triangle", null);   list.addCommand(ok);

Java Beginners

java - Java Beginners
java  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism

Java Beginners

java code - Java Beginners
java code   Dear Sir i need code for the following... * * * * * * * * * * * * * * * This is called Equilateral triangle   Hi...://www.roseindia.net/java/ Thanks.    Hello Please try the following code may

Java Beginners

scanner problem - Java Beginners
scanner problem  the program that enters sides of the triangle using... are providing you a code that will calculate the area of triangle having base and height...(); double area=b*h*1/2; System.out.println("Area of Triangle =" +area

Java Beginners

Dynamic Polymorphism - Java Beginners
Dynamic Polymorphism  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism.? Thanks

Java Beginners

Dynamic polymorphism - Java Beginners
Dynamic polymorphism  Develop with suitable hierarchy, classes for point, shape, rectangele, square, circle,ellipse, triangle, polygon, etc. Design a simple test application to demonstrate dynamic polymorphism.. Thanks

Java Beginners

cannot find symbol - Java Beginners
cannot find symbol  public class Areatest { public static void main(String[]args) { Figure[]figures={new Triangle(2.0,3.0,3.0),new Rectangle(4.0,6.0),new Square(5.0)}; for(int i=0;i

Java Beginners

Recursion - Java Beginners
void main(String[] args) { int theAnswer = triangle(12); System.out.println("Triangle=" + theAnswer); } public static int triangle(int n) { if (n == 1) return 1; else return (n + triangle(n - 1

Java Beginners

java loops - Java Beginners
java loops  Q1 print the following pyramid? -------------* -----------* * ---------* * -------* * -----* * ---* * * * * * * * * * * * Q2-write...- write a program to print the upper and lower triangle of a matrix? Q6

Java Beginners

PYRAMID - Java Beginners
PYRAMID  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C...: A (so it will display a Pyramid OR TRIANGLE) would you like to continue y

Java Beginners

RASTER TRIANGLES!!! - Java Beginners
of right angle triangle starting from left side on the screen as you can see below... if i want to make this kind of triangle 4 times in the same row where... by giving you an example: For example i want my triangle to be of size 5

Java Beginners

java lab programs - Java Beginners
java lab programs  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism. 5. Design a Java

Java Beginners

srinu
srinu  how to print a equilateral triangle (*) in java

Java Beginners

java code - Java Beginners
java code  Dear sir i need one java code * * * * * * * * * * * * * * * this model only i dont want need... public class Triangle { public static void main(String[] args) { for(int

Java Beginners

RASTER TRAINGLES!!! - Java Beginners
of each triangle (i.e. width in characters and height in lines) (b... of triangles to be output. In the example output above the triangle size... of each triangle at a time. In doing this it will output a sequence of *'s

Java Beginners

program - Java Beginners
is not coming.. see my program... import java.io.*; class triangle... java.io.*; public class triangle { public static void main (String[] args.... http://www.roseindia.net/java/ Thanks

Java Beginners

class - Java Beginners
Shapes has abstract methods-area(),display(). Classes Rectangle and Triangle should

Java Beginners

class - Java Beginners
Shapes has abstract methods-area(),display(). Classes Rectangle and Triangle should

Java Beginners

Applet - Java Beginners
java.awt.*; public class Triangle extends JApplet implements MouseListener...; // Left part of the triangle. if (x0to1 > 0... of the triangle. for (i = pt[1].x+1; i <= pt[2].x; i

Java Beginners

java - Java Beginners
java  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C and then it will output a corresponding shape. Example output display: Enter a character: A (so

Java Beginners

java
java  design a class named triangle that extends geometricobject.the... with default values 1.0 to denote three sides of the triangle. * A no-arg constructor that creates a default triangle. * A constructor that creates a triangle

Java Beginners

Java programming help - Java Beginners
Java programming help  Write a program that asks the user... me the size of each triangle : "); int size = Integer.parseInt(n.readLine... for more information. http://www.roseindia.net/java/ Thanks

Java Beginners

print a rectangle - Java Beginners
print a rectangle  how do I print a rectangleof stars in java using simple while loop?Assuming that the length n width of the rectangle is given...("Give me the size of each triangle : "); int size = Integer.parseInt(n.readLine

Java Beginners

shapes - Java Beginners
shapes  helo guys its me again i do really appreciate you help.thank you so much. can you give me a java code same as usual I input a character and it will display a square and triangle sample: Enter a character

Java Beginners

java - Java Beginners
java  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C... information. http://www.roseindia.net/java/ Thanks. Amar

Java Beginners

hello - Java Beginners
hello  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C...: A (so it will display a Pyramid OR TRIANGLE

Java Beginners

java
java  floyd's triangle 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

Java Magazine Questions

C program - Java Magazine
3 integers representing the lengths of the sides of the triangle... of a right-angled triangle, equilateral triangle, isosceles triangle or a scalene triangle. b)Then it calculates and prints the area of the triangle formed

Java Beginners

Java
Java   1Wap to find the area of square and circle using switch statement 2 Wap to find the area of triangle whose sides are a,b,c which are not in equal lenght

Java Beginners

drawing triange using stars - Java Beginners
*;public class Triangle{ public static void main(String args[]){ Polygon tri = new

Java Beginners

java lab programs - Java Beginners
java lab programs  1. Develop a Java package with simple Stack... for Complex numbers in Java. In addition to methods for basic operations on complex..., Ellipse, Triangle, Polygon, etc. Design a simple test application

Java Beginners

method overriding in java
method overriding in java  program to compute area of square,rectangle,triangle,circle and volume of sphere,cylinder and perimeter of a cube using method overriding

Java Beginners

method overriding in java
method overriding in java  program to compute area of square,rectangle,triangle,circle and volume of sphere,cylinder and perimeter of a cube using method overriding

Java Beginners

java
is 1,2,1 output should be: can edges 1,2 and 1 from a triangle? false

Java Beginners

java
is 1,2,1 output should be: can edges 1,2 and 1 from a triangle? false

Java Beginners

java
is 1,2,1 output should be: can edges 1,2 and 1 from a triangle? false

Java Beginners

simple program
simple program  how to print * like triangle

Java Magazine Questions

Pattern - Java Magazine
Pattern  write a program for pascal's triangle the output will be 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

Java Beginners

java program
java program   A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A java program to display above triangle

Java-Tutorials

Java Courses
RoseIndia Java Courses provided online for free can be utilized by beginners... Describing custom tags in JSP For further reading, beginners in java can... Program to construct a triangle with the ?*? Prime Number in Java

Java Tips and Examples

Beginners Java Tutorial
Beginners Java Tutorial     ... with the Java Programming language. This tutorial is for beginners, who wants to learn Java from scratch. In this beginners Java Tutorial you will learn how

Java Interview Questions

Beginners in Java
Beginners in Java  Hi, I am beginners in Java, can someone help me... tutorials for beginners in Java with example? Thanks.   Hi, want to be command over Java, you should go on the link and follow the various beginners

Java Beginners

java beginners - Java Beginners
the following links: http://www.roseindia.net/java/beginners/StringTokenizing.shtml http://www.roseindia.net/java/beginners/tokenizingjavasourcecode.shtml...java beginners  what is StringTokenizer? what is the funciton

Java Beginners

Java for beginners
Java for beginners  Java for beginners Which is the best resource... Java video tutorial for beginners. Thanks   Hi, Here are the best resources for Learning Java for beginners: Java Video tutorial Java tutorials

Java Beginners

java beginners doubt!
java beginners doubt!  How to write clone()in java strings

Java Beginners

programming - Java Beginners
programming for java beginners  How to start programming for java beginners

Java Beginners

Java for beginners - Java Beginners
://www.roseindia.net/java/beginners/index.shtml Thanks...Java for beginners  Hi! I would like to ask you the easiest way to understand java as a beginner? Do i need to read books in advance