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

 

tmhscs@gmail.com arrays > array_makePi
prev  |  next  |  chance

Make an integer array that stores the first 10 digits of pi. For example, 3 should be the first number in the array, then 1, and then 4, and so forth. The length of the array should be size 10. If you don't know the first 10 digits of pi, look below!


array_makePi() → [3, 1, 4, 1, 5, 9, 2, 6, 5, 3]

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

public int[] array_makePi() { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy