pyramid

pyramid

how to get the output like this A BB CCC DDDD

View Answers

December 17, 2010 at 11:29 AM

Hi Friend,

Try the following code:

class Pyramid 
{
    public static void main(String[] args) 
    {
        for(char ch1='A';ch1<='D';ch1++){
        for(char ch2='A';ch2<=ch1;ch2++){
            System.out.print(ch1);
            }
            System.out.println();
        }
        }
        }

Thanks









Related Tutorials/Questions & Answers:
pyramid
pyramid  hi frnds i need java code for pyramid. the pyramid look like this A BAB CBABC BAB
pyramid
pyramid  hi i need java code for pyramid. the pyramid look like this. A BAB CBABC BAB
Advertisements
pyramid
pyramid  how to get the output like this A BB CCC DDDD   Hi Friend, Try the following code: class Pyramid { public static void main(String[] args) { for(char ch1='A';ch1<='D';ch1
pyramid
pyramid  How to get the code for the following pattern * * * * * * * * * *   class Pyramid{ public static void main(String args[]){ for(int i=1;i<=4;i
pyramid
pyramid  How to get the code for the following pattern * * * * * * * * * *   class Pyramid{ public static void main(String args[]){ for(int i=1;i<=4;i
pyramid
pyramid  how to print 1 22 333 4444 55555   class Pyramid { public static void main(String[] args) { for(int i=1;i<=5;i++){ for(int j=1;j<=i;j++){ System.out.print(i
number pyramid
;class Pyramid{ public static void main(String args[]){ for(int i=1;i<=7...; class Pyramid{ public static void main(String args[]){ for(int i
Number Pyramid
for the following number pyramid: print.... So far I have this: print("import java.util.Scanner; class Pyramid { public... Pyramid { public static void main(String[] args) { Scanner input = new Scanner
Pyramid
pyramid
pyramid
pyramid
pyramid
ModuleNotFoundError: No module named 'pyramid'
ModuleNotFoundError: No module named 'pyramid'  Hi, My Python... 'pyramid' How to remove the ModuleNotFoundError: No module named 'pyramid... to install padas library. You can install pyramid python with following command
nmber printed in pyramid format
nmber printed in pyramid format  how to print this format using java 1 23 345 4567 56789
Application for print pyramid of numbers
Application for print pyramid of numbers  What is the code for printing the numbers like 1 1 1 1 2 2 1 1 3 4 3 1 1 4 7 7 4 1
Java Pyramid of Numbers
Java Pyramid of Numbers  Hi, I want to know how the code to print the pyramid below works. It uses nested for loops. Pyramid: 1 2 1 2
ModuleNotFoundError: No module named 'anyblok_pyramid'
ModuleNotFoundError: No module named 'anyblok_pyramid'  Hi, My... named 'anyblok_pyramid' How to remove the ModuleNotFoundError: No module named 'anyblok_pyramid' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'launchkey-pyramid'
ModuleNotFoundError: No module named 'launchkey-pyramid'  Hi, My... named 'launchkey-pyramid' How to remove the ModuleNotFoundError: No module named 'launchkey-pyramid' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'minty-pyramid'
ModuleNotFoundError: No module named 'minty-pyramid'  Hi, My... 'minty-pyramid' How to remove the ModuleNotFoundError: No module named 'minty-pyramid' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'opbeat_pyramid'
ModuleNotFoundError: No module named 'opbeat_pyramid'  Hi, My... named 'opbeat_pyramid' How to remove the ModuleNotFoundError: No module named 'opbeat_pyramid' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_addons'
ModuleNotFoundError: No module named 'pyramid_addons'  Hi, My... named 'pyramid_addons' How to remove the ModuleNotFoundError: No module named 'pyramid_addons' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_admin'
ModuleNotFoundError: No module named 'pyramid_admin'  Hi, My... 'pyramid_admin' How to remove the ModuleNotFoundError: No module named 'pyramid_admin' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_cachebust'
ModuleNotFoundError: No module named 'pyramid_cachebust'  Hi, My... named 'pyramid_cachebust' How to remove the ModuleNotFoundError: No module named 'pyramid_cachebust' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pyramid_caching'
ModuleNotFoundError: No module named 'pyramid_caching'  Hi, My... named 'pyramid_caching' How to remove the ModuleNotFoundError: No module named 'pyramid_caching' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid-captcha'
ModuleNotFoundError: No module named 'pyramid-captcha'  Hi, My... named 'pyramid-captcha' How to remove the ModuleNotFoundError: No module named 'pyramid-captcha' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_cas'
ModuleNotFoundError: No module named 'pyramid_cas'  Hi, My Python... 'pyramid_cas' How to remove the ModuleNotFoundError: No module named 'pyramid_cas' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pyramid_cli'
ModuleNotFoundError: No module named 'pyramid_cli'  Hi, My Python... 'pyramid_cli' How to remove the ModuleNotFoundError: No module named 'pyramid_cli' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pyramid_closure'
ModuleNotFoundError: No module named 'pyramid_closure'  Hi, My... named 'pyramid_closure' How to remove the ModuleNotFoundError: No module named 'pyramid_closure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_command'
ModuleNotFoundError: No module named 'pyramid_command'  Hi, My... named 'pyramid_command' How to remove the ModuleNotFoundError: No module named 'pyramid_command' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_contextauth'
ModuleNotFoundError: No module named 'pyramid_contextauth'  Hi, My... named 'pyramid_contextauth' How to remove the ModuleNotFoundError: No module named 'pyramid_contextauth' error? Thanks   Hi
ModuleNotFoundError: No module named 'pyramid_controllers'
ModuleNotFoundError: No module named 'pyramid_controllers'  Hi, My... named 'pyramid_controllers' How to remove the ModuleNotFoundError: No module named 'pyramid_controllers' error? Thanks   Hi
ModuleNotFoundError: No module named 'pyramid_addons'
ModuleNotFoundError: No module named 'pyramid_addons'  Hi, My... named 'pyramid_addons' How to remove the ModuleNotFoundError: No module named 'pyramid_addons' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_admin'
ModuleNotFoundError: No module named 'pyramid_admin'  Hi, My... 'pyramid_admin' How to remove the ModuleNotFoundError: No module named 'pyramid_admin' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_alchemy'
ModuleNotFoundError: No module named 'pyramid_alchemy'  Hi, My... named 'pyramid_alchemy' How to remove the ModuleNotFoundError: No module named 'pyramid_alchemy' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_amdjs'
ModuleNotFoundError: No module named 'pyramid_amdjs'  Hi, My... 'pyramid_amdjs' How to remove the ModuleNotFoundError: No module named 'pyramid_amdjs' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_amon'
ModuleNotFoundError: No module named 'pyramid_amon'  Hi, My Python... 'pyramid_amon' How to remove the ModuleNotFoundError: No module named 'pyramid_amon' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_analytics'
ModuleNotFoundError: No module named 'pyramid_analytics'  Hi, My... named 'pyramid_analytics' How to remove the ModuleNotFoundError: No module named 'pyramid_analytics' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pyramid_angularstarter'
ModuleNotFoundError: No module named 'pyramid_angularstarter'  Hi...: No module named 'pyramid_angularstarter' How to remove the ModuleNotFoundError: No module named 'pyramid_angularstarter' error? Thanks   Hi
ModuleNotFoundError: No module named 'pyramid_anthrax'
ModuleNotFoundError: No module named 'pyramid_anthrax'  Hi, My... named 'pyramid_anthrax' How to remove the ModuleNotFoundError: No module named 'pyramid_anthrax' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid-apispec'
ModuleNotFoundError: No module named 'pyramid-apispec'  Hi, My... named 'pyramid-apispec' How to remove the ModuleNotFoundError: No module named 'pyramid-apispec' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_appengine'
ModuleNotFoundError: No module named 'pyramid_appengine'  Hi, My... named 'pyramid_appengine' How to remove the ModuleNotFoundError: No module named 'pyramid_appengine' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pyramid-arima'
ModuleNotFoundError: No module named 'pyramid-arima'  Hi, My... 'pyramid-arima' How to remove the ModuleNotFoundError: No module named 'pyramid-arima' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_armor'
ModuleNotFoundError: No module named 'pyramid_armor'  Hi, My... 'pyramid_armor' How to remove the ModuleNotFoundError: No module named 'pyramid_armor' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_asbool'
ModuleNotFoundError: No module named 'pyramid_asbool'  Hi, My... named 'pyramid_asbool' How to remove the ModuleNotFoundError: No module named 'pyramid_asbool' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_assetgen'
ModuleNotFoundError: No module named 'pyramid_assetgen'  Hi, My... named 'pyramid_assetgen' How to remove the ModuleNotFoundError: No module named 'pyramid_assetgen' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pyramid_assetmutator'
ModuleNotFoundError: No module named 'pyramid_assetmutator'  Hi...: No module named 'pyramid_assetmutator' How to remove the ModuleNotFoundError: No module named 'pyramid_assetmutator' error? Thanks   Hi
ModuleNotFoundError: No module named 'pyramid_assetviews'
ModuleNotFoundError: No module named 'pyramid_assetviews'  Hi, My... named 'pyramid_assetviews' How to remove the ModuleNotFoundError: No module named 'pyramid_assetviews' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pyramid-asyncio'
ModuleNotFoundError: No module named 'pyramid-asyncio'  Hi, My... named 'pyramid-asyncio' How to remove the ModuleNotFoundError: No module named 'pyramid-asyncio' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pyramid_auth'
ModuleNotFoundError: No module named 'pyramid_auth'  Hi, My Python... 'pyramid_auth' How to remove the ModuleNotFoundError: No module named 'pyramid_auth' error? Thanks   Hi, In your python

Ads