Skip to content

Instantly share code, notes, and snippets.

@iamsurya
Created March 1, 2017 15:05
Show Gist options
  • Save iamsurya/b5b3d9442740aa69b247ab95e39cc4e4 to your computer and use it in GitHub Desktop.
Save iamsurya/b5b3d9442740aa69b247ab95e39cc4e4 to your computer and use it in GitHub Desktop.
/*
Raju Pengananapuram looks at Sonik's program and finds it very useful.
However he realized that NASA's scientists want time to be between
1 seconds and 21 seconds with 2 second intervals (1, 3, 5... 21)
and the European Space Agency wants time between 30 and 180 seconds
with 30 second intervals (30, 60, 90... 180).
Recreate the program using while loops. Ask Raju for velocity, start time, end time
and interval.
Also create another version of the program that does the same using for loops.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment