Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


inder
star
2 Answer(s)      3 years and 9 months ago
Posted in : Java Beginners


<p>class inder{
public static void main(String args[]){
int i,j;
for(i=1;i&lt;10;i++){
for(j=i;j&lt;10;j++)
System.out.print("*");
System.out.println();
}
}
} </p>

<p>this is a coding in we done star show in this condition
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
**
*
but i want the program which shows in that condition
*
**
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
 plzzzz help me</p>

Advertisement
View Answers

April 4, 2011 at 5:55 PM


class Pyramid{
        public static void main(String[] args) {
        for(int i=1;i<=10;i++){
        for(int j=1;j<=i;j++){
            System.out.print("*");
            }
            System.out.println();
        }
        }
        }


April 4, 2011 at 6:07 PM


thanks



Related Tutorials/Questions & Answers:
star
in we done star show in this condition <hr /> <hr /> <hr />
star rating code in jsp - JSP-Servlet
star rating code in jsp  how to write star rating system using jsp
Advertisements
Five Star Hotels in Agra
5 Star Hotels in Agra A host of five star hotels in Agra are raring to welcome you in the city that beckons like a star on the tourist horizon of India... star hotels in Agra are bespoke accommodation for tourist having a yen
3 Star Hotels in Jaipur
3 Star Hotels in Jaipur The capital of state of Rajasthan, Jaipur... optimum value for the money. 3 Star hotels in Jaipur are perfect cut for the tourists who want a fine mix of affordability with luxury. Theses three star hotels
3 Star Hotels in Delhi
3 Star Hotels in Delhi Looking for a luxury hotels in Delhi, that too in an affordable budget; check into 3 star hotels in Delhi. These hotels offer.... Some of the facilities offered by Delhi’s three star hotel are central air
4 Star Hotels in Jaipur
4 Star Hotels in Jaipur The 4 star hotels in Jaipur offers quality... necessitates the need of Jaipur four-star hotels that falls between uber luxurious palace turned hotel and hotels with just the basic amenities. These four star
Heritage Hotels in Jaipur India
. These five star heritage hotels in Jaipur give tourists visiting this city a chance... converted these palaces into the 5 star heritage hotels in Jaipur to get
Budget Hotels in Jaipur
Budget Hotels in Jaipur The capital city of Indian state of Rajasthan Jaipur is a tourist destination that attracts everyone from affluent to even a common man. As everyone cannot afford the high tariffs of the luxury and star
Hotels in Agra India
are classified into various categories like five star, four star, three star and budget
using array
using array  read 10 digit number and display (star
loop
loop  i want to write my name(inder) through loop in java using star
Java Code - Java Beginners
Java Code  Code a statement that assigns the value ?Star Wars? to the first element of an array of strings named titles
Java Code - Java Beginners
Java Code  Code a statement that assigns the value ?Star Wars? to the first element of an array of strings named titles
make this program in java
make this program in java  given array a[1,5,3,1].want to take value from array and print star(*) that number times columm wise . output shuld
java
java  given array a[1,5,3,1].want to take value from array and print star(*) that number times columm wise . output shuld
jsp
jsp  I can't get any answer please guide me..i got an exception which is shown in star above in my yesterday program
How to design glitter shine effect on the text, design glitter shine effect on the text, glitter shine effect on the text
;Roseindia.net". Star shape: Take a new layer and give name "little star", choose "white" color and Pen tool (P key) to make a star... as I have done here. You will get it. Draw More star: Use same steps to make
javaprograms
STAR. SAMPLE OUTPUT: ORIGINAL TEXT: SANIA MIRZA IS A SENSATIONAL TENNIS STAR
Java Code - Java Beginners
Java Code  Code a statement that assigns the value ?Star Wars? to the first element of an array of strings named titles.  Hi friend...[] = new String[1]; titles[0] = "Star Wars"; System.out.println
How to design a galaxy, design a galaxy, a galaxy
a galaxy scene. New File: Take a new file with appropriate size. Star Shape: Choose Pen tool (P key) and this "bcacba" color then make points as a star... your mouse pointer with star brush in different color. Final Result  
Hotels near Taj Mahal Agra
into various categories like 5 star, 4 star, 3 star and budget and economy hotels... and services at the star category hotels are at par with global standards
JAVA
in html page.but i want this in Java coding form.give star mark to all fields
Night Sky Design in Photoshop
below. Fifth Step: In the fifth step you have to design a star so open... as a star shape, when completed selection fill with white color and adjust size... many stars so. Select one star, alt key and move arrow key. The new star
start pyramid
start pyramid  how to make program use loop to make the output become like this; * ** ** *   import java.lang.*; class Star { public static void main(String args[]) { int k,i,j,p=4; for(i=1;i<5;i
How to Get this Output
How to Get this Output  1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1   Done It public class star { public static void main(String[] args) { for(int i=1;i<=5;i
Java Comments
is discarded by the Java compiler. For instance /* This comment, a "slash-star" comment, includes multiple lines. * It begins with the slash-star sequence (with no space between  * the '/' and '*' characters) and extends to the star-slash
Java Comments
is discarded by the Java compiler. For instance /* This comment, a "slash-star" comment, includes multiple lines. * It begins with the slash-star sequence (with no space between  * the '/' and '*' characters) and extends to the star-slash
Java Comments
/* This comment, a "slash-star" comment, includes multiple lines. * It begins with the slash-star sequence (with no space between  * the '/' and '*' characters) and extends to the star-slash sequence. */ Slash-star comments may
Verifying Version of Java - Java Beginners
Verifying Version of Java  I am coding an install script for Star-CCM+ (CD-Adapco) that requires Java 1.6.x at least. So I am looking for a testing I can do inside my wise script that will identify the LATEST version of Java
 

 

 

DMCA.com