id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > PascalsLine
prev  |  next  |  chance

Pascal's Line -- This program will find one line of Pascal's Triangle - The value coming into the method is the line number and the method will return a String representing that line in the Triangle Example 4 1-4-6-4-1


PascalsLine(4) → "1-4-6-4-1"
PascalsLine(2) → "1-2-1"
PascalsLine(3) → "1-3-3-1"

...Save, Compile, Run (ctrl-enter)

public String PascalsLine(int x){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 160 Post-solution available

Copyright Nick Parlante 2017 - privacy