Modified shap

Modified shap

Respected Sir, Now i need of diamond shap with outline of diamond shape.Using single" " and "*" with looping structure.Please help me!

View Answers

April 10, 2008 at 7:24 PM

Hi Friend

import java.io.*;
import java.io.BufferedReader;

public class PrintDiamond{
public static final void main(String[] args) throws IOException{
BufferedReader read = new BufferedReader( new InputStreamReader(System.in));
System.out.print("Enter the numerical Numebr:");
String str= read.readLine();
int n = Integer.parseInt(str);
for ( int i = 1; i <= n; i += 2 ){
for(int k = 0; k < ( n - i ); k += 2)
System.out.print(" ");
for(int j = 0; j < (( i * 2 ) - 1 ); j += 2)
System.out.print(" *");
System.out.println(" ");
}
for(int i = 1; i <= n; i += 2){
for(int k = 1; k < i; k += 2)
System.out.print(" ");
for(int j = 0; j <= (n - i); j++)
System.out.print(" *");
System.out.println(" ");
}
}
}









Related Tutorials/Questions & Answers:
Modified shap - Java Beginners
Modified shap  Respected Sir, Now i need of diamond shap with outline of diamond shape.Using single" " and "*" with looping structure.Please help me!  Hi Friend import java.io.*;import java.io.BufferedReader;public
ModuleNotFoundError: No module named 'shap'
ModuleNotFoundError: No module named 'shap'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'shap' How to remove the ModuleNotFoundError: No module named 'shap' error
Advertisements
ModuleNotFoundError: No module named 'shap'
ModuleNotFoundError: No module named 'shap'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'shap' How to remove the ModuleNotFoundError: No module named 'shap' error
Last modified time of a webpage
Last modified time of a webpage  how can we get the last modified time of a webpage using java
Last modified date of a folder
Last modified date of a folder  How to get the last modified date of a folder specified by a link in html
ModuleNotFoundError: No module named 'modified'
ModuleNotFoundError: No module named 'modified'  Hi, My Python... 'modified' How to remove the ModuleNotFoundError: No module named 'modified... to install padas library. You can install modified python with following
ModuleNotFoundError: No module named 'modified'
ModuleNotFoundError: No module named 'modified'  Hi, My Python... 'modified' How to remove the ModuleNotFoundError: No module named 'modified... to install padas library. You can install modified python with following
ModuleNotFoundError: No module named 'anndata-modified'
ModuleNotFoundError: No module named 'anndata-modified'  Hi, My... named 'anndata-modified' How to remove the ModuleNotFoundError: No module named 'anndata-modified' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'fisher-modified'
ModuleNotFoundError: No module named 'fisher-modified'  Hi, My... named 'fisher-modified' How to remove the ModuleNotFoundError: No module named 'fisher-modified' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'MulticoreTSNE-modified'
ModuleNotFoundError: No module named 'MulticoreTSNE-modified'  Hi...: No module named 'MulticoreTSNE-modified' How to remove the ModuleNotFoundError: No module named 'MulticoreTSNE-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'MulticoreTSNE-modified'
ModuleNotFoundError: No module named 'MulticoreTSNE-modified'  Hi...: No module named 'MulticoreTSNE-modified' How to remove the ModuleNotFoundError: No module named 'MulticoreTSNE-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'plotly_modified'
ModuleNotFoundError: No module named 'plotly_modified'  Hi, My... named 'plotly_modified' How to remove the ModuleNotFoundError: No module named 'plotly_modified' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'anndata-modified'
ModuleNotFoundError: No module named 'anndata-modified'  Hi, My... named 'anndata-modified' How to remove the ModuleNotFoundError: No module named 'anndata-modified' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'fisher-modified'
ModuleNotFoundError: No module named 'fisher-modified'  Hi, My... named 'fisher-modified' How to remove the ModuleNotFoundError: No module named 'fisher-modified' error? Thanks   Hi, In your python
Resources have been modified iPhone
Resources have been modified iPhone  Hi, My client is getting Resources have been modified error while installing AdHoc distribution on his iPhone. How to solve Resources have been modified iPhone error? Thanks   Hi
how to find which user has modified the file
how to find which user has modified the file  how to find which user has modified the file
To Display the 'Last Modified' message in JSP
To Display the 'Last Modified' message in JSP  I have to display the "Last Modified" auto save message in a portlet page at the right end corner... Modified' Message should be displayed
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified'
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' ...: ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' How to remove...-modified' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'umap-learn-modified'
ModuleNotFoundError: No module named 'umap-learn-modified'  Hi, My... named 'umap-learn-modified' How to remove the ModuleNotFoundError: No module named 'umap-learn-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-cache-toolbox-modified'
ModuleNotFoundError: No module named 'django-cache-toolbox-modified'  ...: No module named 'django-cache-toolbox-modified' How to remove the ModuleNotFoundError: No module named 'django-cache-toolbox-modified' error
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified'
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' ...: ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' How to remove...-modified' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'django-last-modified'
ModuleNotFoundError: No module named 'django-last-modified'  Hi...: No module named 'django-last-modified' How to remove the ModuleNotFoundError: No module named 'django-last-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified'
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' ...: ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' How to remove...-modified' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified'
ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' ...: ModuleNotFoundError: No module named 'django-taggit-autocomplete-modified' How to remove...-modified' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'peak-analysis-modified'
ModuleNotFoundError: No module named 'peak-analysis-modified'  Hi...: No module named 'peak-analysis-modified' How to remove the ModuleNotFoundError: No module named 'peak-analysis-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'sphinx_modern_theme_modified'
ModuleNotFoundError: No module named 'sphinx_modern_theme_modified'  ...: No module named 'sphinx_modern_theme_modified' How to remove the ModuleNotFoundError: No module named 'sphinx_modern_theme_modified' error
ModuleNotFoundError: No module named 'cuckoo-modified-api'
ModuleNotFoundError: No module named 'cuckoo-modified-api'  Hi, My... named 'cuckoo-modified-api' How to remove the ModuleNotFoundError: No module named 'cuckoo-modified-api' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-account-modified'
ModuleNotFoundError: No module named 'django-account-modified'  Hi...: No module named 'django-account-modified' How to remove the ModuleNotFoundError: No module named 'django-account-modified' error? Thanks   
ModuleNotFoundError: No module named 'django-last-modified'
ModuleNotFoundError: No module named 'django-last-modified'  Hi...: No module named 'django-last-modified' How to remove the ModuleNotFoundError: No module named 'django-last-modified' error? Thanks   Hi
ModuleNotFoundError: No module named 'djangorestframework-last-modified'
ModuleNotFoundError: No module named 'djangorestframework-last-modified' ...: ModuleNotFoundError: No module named 'djangorestframework-last-modified' How to remove the ModuleNotFoundError: No module named 'djangorestframework-last-modified'
Sort last modified file time in java
Sort last modified file time in java  How to sort the last modified file time in java?   import java.io.*; import java.util.*; import java.text.*; public class FileModifiedDate { public static void main(String
C file Last Modified Date
C file Last Modified Date       This section demonstrates you to find the last modified date... modified date of the specified file Hello.txt. For this, we have defined
Find the date of the file before the file has been modified
modified?   hi friend, you can get the date of last modified file using... last modified date of a file you may go through the following link may
Find the files that has been modified before run the program
Find the files that has been modified before run the program  Hi. I have a code that can find the latest modified file in the directory...; } } }); //get the file name that has latest modified date
Find the files that has been modified before run the program
Find the files that has been modified before run the program  Hi. I have a code that can find the latest modified file in the directory. //store...; } } }); //get the file name that has latest modified date files = ((File
Find the files that has been modified before run the program
Find the files that has been modified before run the program  Hi. I have a code that can find the latest modified file in the directory. //store...; } } }); //get the file name that has latest modified date files = ((File
The app was not installed on iphone because its resources have been modified
resources have been modified" What is the solution? Thanks   Hi, You have
System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h' has been modified since the precompiled header
System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h' has been modified since the precompiled header  Hi, I am getting the following... been modified since the precompiled header You should delete the .pcm file
Java file last modified date
Java file last modified date In this section, you will learn how to get... it. You can use the lastModified() method to get the file?s last modified...); System.out.println("The file was last modified on: " + dateString); } } Through
Java file modified date
Java file modified date In this section, you will learn how to find the modification date and time of the file. Description of code: We have created an instance of File class and specify the file. Then, we have checked whether
Java latest file
Java latest file In this section, you will learn how to find the file which is generated or modified at last. Description of code: To find the last modified file, we have used the Comparator interface that compare the files 
Java read latest file
Java read latest file Java provides IO package to perform file operations. Here we are going to read the last modified file. For this, we have used the Comparator interface that compare the files and by using the Arrays.sort() method, we
PHP variables
PHP Variable Index A variable is like a container which stores a value which can be modified further, in each computer language programming variables plays a vital role and in each language the declaration of it varies. Unlike a constant
URL Rewriting in Java
is modified to include extra information.ADS_TO_REPLACE_1 Since for URL rewriting
date_isodate_setdate
date_isodate_setdate The ISO Date Format PHP or DateTime::setISODate function sets the date according to ISO 8601 standard - using weeks and day offsets rather than specific dates. It returns the modified DateTime.  Description
date_time_set
date_time_set date_time_set alias DateTime::setTime function resets the the current time of the DateTime object to a different time. It returns the modified date and time.  Syntax public DateTime DateTime::setTime ( int
Discovery Machine Gear
usable, executable graphical software that can then be shared, modified
Hibernate Synchronizer
will automatically generate java code when your hibernate mapping files are modified... will be modified. How do I install this plugin? There are two different
date_timezone_set
date_timezone_set() in PHP date_timezone_set alias DateTime::setTimezone function is used for setting the time zone for the DateTime object. It returns the modified DateTime.  Syntax on date_timezone_set() PHP public
Alvicom JavaCov
Alvicom JavaCov       JavaCov is a unique J2SE/J2EE coverage-testing tool. It is the only Java testing tool capable of verifying the so-called MC/DC (Modified

Ads