Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

help me

help

  • Please log in to reply
16 replies to this topic

#1 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 08 April 2015 - 01:57 PM

pleas can you help me!
how can print this


1
212
32123
4321234
543212345
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 09 April 2015 - 04:17 AM

cout << "1\n212\n32123\n4321234\n543212345"

  • 2

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash

Posted 09 April 2015 - 05:04 AM

WP:  :thumbup1:  :thumbup1:  :thumbup1:

 

Student:  :rules:


  • 0
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth

#4 BlackRabbit

BlackRabbit

    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts
  • Location:Argentina
  • Programming Language:C, C++, C#, PHP, JavaScript, Transact-SQL, Bash, Others
  • Learning:Java, Others

Posted 09 April 2015 - 05:37 AM

Welcome aboard.

 

WP lol .

 

You should specify in which language, but assuming you need the algorithm.

I thing about  an array, a loop from end to 1, and you filling the array from both sides, then ask WP how to print it.


  • 0

#5 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 09 April 2015 - 08:59 AM

in loop.
  • 0

#6 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash

Posted 09 April 2015 - 09:00 AM

Definitely doesn't sweat the details. 


  • 0
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth

#7 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 09 April 2015 - 11:05 AM

Okay, first thing: my answer was EXTREMELY tongue in cheek. It gave the output you requested while deliberately avoiding the answer you were looking for.

 

We don't do homework. So, what do you have so far? What language will this be in? Have you solved any similar problems before? What did their solutions look like? How is this different from those?


  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#8 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 10 April 2015 - 09:22 AM

1
212
32123
4321234
543212345
I solve it in this way
for(int i=1;i<=5;i++){

for(int k=5;k>i;k--){

system.out.print(" " +" ");

for(int j=i;j>=i;j--){
}
for(int m=2;m<=i;m++){
system.out.print(" " +m);
system.out.println();
}
}
}
  • 0

#9 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 10 April 2015 - 09:59 AM

for(int k=5;k>i;k--){
system.out.print(" " +" ");

should be

for(int k=i;k>0;k--){
system.out.print(k);

There may be other tweaks, but very good.


  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#10 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 11 April 2015 - 10:16 PM

ok thanks so mutch
  • 0

#11 student9

student9

    CC Newcomer

  • Member
  • PipPip
  • 15 posts

Posted 12 April 2015 - 06:48 AM

if i have a question like this
write a programme to show the total salary of employees.the salary calculated like.
total s= basic + alawas+house rent.
use a method to find the total salary.
The company has 5 employees.
I tray to do it . but I have many error.
Please help me eerie
help me`
  • 0

#12 BlackRabbit

BlackRabbit

    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts
  • Location:Argentina
  • Programming Language:C, C++, C#, PHP, JavaScript, Transact-SQL, Bash, Others
  • Learning:Java, Others

Posted 12 April 2015 - 07:11 AM

please create a new post, with the code you already have, and what's going wrong with. Of course, include the error messages in the post.


  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download