draw this pattern of swastic.

draw this pattern of swastic.

last time i had asked swastic pattern but u had used array i want use only for loop please not use array , example

     * 
    ** 
   *** 
  **** 
 ***** 

public class starn {
 public static void main(String[] args) {
  int i;
  int j;
  int k;
for(i=1; i<=5; i++ ){
 for( k=5; k>=i; k-- ){
  System.out.print(" ");
 }

for( j=1; j<= i; j++ ){
 System.out.print("*");

}
System.out.println(" ");
}}}


please draw this pattern with explation i.e for understand loop


*  *  *  *  *          *              
            *          *    
            *          *   
*  *  *  *  *  *  *  * *  
*           *             
*           *             
*           * *  *  *  *         
View Answers









Related Tutorials/Questions & Answers:
draw this pattern of swastic.
draw this pattern of swastic.  last time i had asked swastic pattern but u had used array i want use only for loop please not use array...(" "); }}} please draw this pattern with explation i.e for understand loop
draw this pattern of swastic.
draw this pattern of swastic.  last time i had asked swastic pattern but u had used array i want use only for loop please not use array...(" "); }}} please draw this pattern with explation i.e for understand loop
Advertisements
pattern
of different sizes. The size of each pattern is determined by the number of columns or rows. For example, a pattern of size 5 has 5 columns and 5 rows. Each pattern is made of character $ and a digit, which shows the size. The size must
Pattern
Pattern  How to print this pattern in Java please help me A AC ACE ACEG ACEGI The program should be right to left
pattern
pattern  1 3 1 5 3 1 7 5 3 1 9 7 5 3   Here is a number pattern example. 1 3 1 5 3 1 7 5 3 1 9 7 5 3 1 class Pattern{ public static void main(String args[]){ for(int i=1;i<=9;i
Pattern
Pattern  1234321 123 321 12 21 1 1 please,give me this pattern in java   class Sixth_1 { public static void main(String args...; } } }   Here is a number pattern class Pattern{ public
Draw Line
Draw Line  sir i want to draw a moving line in j2me.That line should also show arrow in moving direction. How can we do so
pattern printing
pattern printing  
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... a rectangle and this works for a rectangle: public void draw(Graphics g
Pattern Matching
Pattern Matching  hello, What operator performs pattern matching?   hii,ADS_TO_REPLACE_1 The "LIKE" operator performs the pattern matching in SQL
Design pattern
Design pattern  explain factory pattern
Pattern Making
Pattern Making  how to print this pattern in java? * * * * * * * * * * * * * * * * * It is just an example
draw chart in web application
draw chart in web application  how to draw bar chat from the record store in database? i.e. draw the bar chart according to selected record
pattern program
pattern program  can some one plz help me to wright the logic for the following pattern abcdcba abc cba ab ba a a ab ba abc cba abcdcba
Java pattern
Java pattern  Write a Java program that outputs the following pattern. 1 21 321 4321 54321 654321
ModuleNotFoundError: No module named 'draw'
ModuleNotFoundError: No module named 'draw'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'draw' How to remove the ModuleNotFoundError: No module named 'draw' error
ModuleNotFoundError: No module named 'draw'
ModuleNotFoundError: No module named 'draw'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'draw' How to remove the ModuleNotFoundError: No module named 'draw' error
pattern matcher
pattern matcher  i want a number in a specific range in pattern matcher..for example a number should only be in the range of 6-9 digits... = tf.getText(); Pattern pattern = Pattern.compile("\\d{10}"); Matcher matcher
pattern program
pattern program  can any 1 print the following pattern in java .plz give the code.and yes thank u so much for answering my 2 other questions.had i... before.anyways the pattern goes like this abcdcba abc cba ab ba a a ab ba abc abc
pattern program
pattern program  13579 1357 135 13 1 pattern program in java   Here is your Example:- package Compare; public class PatternDemo { public static void main(String [] args){ int c=10; for(int i=0;i<
Code for Pattern
Code for Pattern   1 23 345 5678 891011 Please write the code of above program and please do not use in this string tokennizer, string buffer etc i mean to say that please use very simple method
Lottery Draw - Java Beginners
Java lottery program  Please send me an example for the Lottery Draw application in Java.Thanks in advance
Pattern matching
Pattern matching  String tagvalue = I've above string and I need... Pattern fnamepat = Pattern.compile("fname=\"([^<>]+)\" "); Matcher fmatch... or any string handling concept. I'm trying Pattern fnamepat = Pattern.compile
Coder for Pattern
Coder for Pattern  1 12 123 1234 12345 please write the program of above pattern and do not use string tokennizer string buffer i mean to say that please use very simple method Thanks   public class PatternExample
pattern
pattern generation
pattern generation  write a program to print pattern shown below 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9   Here is an example of number spiral. public class NumberSpiral{ public
The Prototype Pattern
The Prototype Pattern       The Prototype Pattern:  This pattern enables you to copy... Shape.java interface Shape { public void draw(); } 
how to make this pattern???
how to make this pattern???  how to make following pattern in javascript
How to draw a television
How to draw a television Try to draw a television... Shape: First draw a Rectangle shape with black color by using Rectangle tool (U... and rounded rectangle tool (U key) to draw a rounded rectangle shape.ADS_TO_REPLACE_5
How to draw globe, draw globe, globe
How to draw globe      .... New File: Start by taking a new document.ADS_TO_REPLACE_1 Draw Circle: Choose any color and Ellipse Tool (U key) to draw a circle as given below. World Map
Dynamic Line draw in JSp
Dynamic Line draw in JSp  In my application. I have one source selected from listbox and multiple targets selected from checkboxes. After submitting "next" button it should give me multiple lines drw from one source to respective
How to draw a soccer boll
How to draw a soccer boll Draw a soccer boll by using...; . ADS_TO_REPLACE_1 Polygonal Shape: Draw a shape with Black... to white and draw again a polygonal shape.ADS_TO_REPLACE_2 Define
ModuleNotFoundError: No module named 'draw-and-learn'
ModuleNotFoundError: No module named 'draw-and-learn'  Hi, My... named 'draw-and-learn' How to remove the ModuleNotFoundError: No module named 'draw-and-learn' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'draw-compose'
ModuleNotFoundError: No module named 'draw-compose'  Hi, My Python... 'draw-compose' How to remove the ModuleNotFoundError: No module named 'draw-compose' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'libsbml-draw'
ModuleNotFoundError: No module named 'libsbml-draw'  Hi, My Python... 'libsbml-draw' How to remove the ModuleNotFoundError: No module named 'libsbml-draw' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'metaphor-draw'
ModuleNotFoundError: No module named 'metaphor-draw'  Hi, My... 'metaphor-draw' How to remove the ModuleNotFoundError: No module named 'metaphor-draw' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'plato-draw'
ModuleNotFoundError: No module named 'plato-draw'  Hi, My Python... 'plato-draw' How to remove the ModuleNotFoundError: No module named 'plato-draw' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'py-draw'
ModuleNotFoundError: No module named 'py-draw'  Hi, My Python...-draw' How to remove the ModuleNotFoundError: No module named 'py-draw... to install padas library. You can install py-draw python with following command
ModuleNotFoundError: No module named 'simple-draw'
ModuleNotFoundError: No module named 'simple-draw'  Hi, My Python... 'simple-draw' How to remove the ModuleNotFoundError: No module named 'simple-draw' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'draw-and-learn'
ModuleNotFoundError: No module named 'draw-and-learn'  Hi, My... named 'draw-and-learn' How to remove the ModuleNotFoundError: No module named 'draw-and-learn' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'draw-compose'
ModuleNotFoundError: No module named 'draw-compose'  Hi, My Python... 'draw-compose' How to remove the ModuleNotFoundError: No module named 'draw-compose' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'draw-mempool'
ModuleNotFoundError: No module named 'draw-mempool'  Hi, My Python... 'draw-mempool' How to remove the ModuleNotFoundError: No module named 'draw-mempool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'draw-plum'
ModuleNotFoundError: No module named 'draw-plum'  Hi, My Python... 'draw-plum' How to remove the ModuleNotFoundError: No module named 'draw... have to install padas library. You can install draw-plum python with following
ModuleNotFoundError: No module named 'grid-draw'
ModuleNotFoundError: No module named 'grid-draw'  Hi, My Python... 'grid-draw' How to remove the ModuleNotFoundError: No module named 'grid-draw' error? Thanks   Hi, In your python environment you
How to draw a house, draw a house, a house
How to draw a house       Use this example to draw a house in the photoshop, it has been...; color and Rectangle tool (U key) to draw a rectangle shape like a window. Go
How to draw pie chart in J2ME
How to draw pie chart in J2ME  Hi, I'm developing a program using J2ME and I want to draw a pie chart but it seems J2ME language hasn't available chart component like JFreeChart in Java! could any one help me how can I draw a pie
ModuleNotFoundError: No module named 'Pattern'
ModuleNotFoundError: No module named 'Pattern'  Hi, My Python... 'Pattern' How to remove the ModuleNotFoundError: No module named 'Pattern... to install padas library. You can install Pattern python with following command
ModuleNotFoundError: No module named 'Pattern'
ModuleNotFoundError: No module named 'Pattern'  Hi, My Python... 'Pattern' How to remove the ModuleNotFoundError: No module named 'Pattern... to install padas library. You can install Pattern python with following command
ModuleNotFoundError: No module named 'Pattern'
ModuleNotFoundError: No module named 'Pattern'  Hi, My Python... 'Pattern' How to remove the ModuleNotFoundError: No module named 'Pattern... to install padas library. You can install Pattern python with following command
ModuleNotFoundError: No module named 'Pattern'
ModuleNotFoundError: No module named 'Pattern'  Hi, My Python... 'Pattern' How to remove the ModuleNotFoundError: No module named 'Pattern... to install padas library. You can install Pattern python with following command

Ads