Skip to main content
Fix junky example format
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53

50,47* returns 2350 (i.e. 47*50)
50,47/ returns 0.94 (i.e. 47/50)
100,8! returns 40320 (i.e. factorial of 8)
100D* returns 10000 (i.e. 100*100)
! returns StackUnderflowException!!!
5,2/! returns FloatingFactorialException!!!
4,3!2*/ returns 3
654,489,48,43/5*7D+-*% returns 77.68749999999909 (i.e. 43/48*5-(7+7)*489%654)
returns EmptyProgram!!!

50,47*                 -> 2350
50,47/                 -> 0.94
100,8!                 -> 40320  
100D*                  -> 10000
!                      -> StackUnderflowException!!!
5,2/!                  -> FloatingFactorialException!!!  
4,3!2*/                -> 3 
654,489,48,43/5*7D+-*% -> 77.68749999999909
                       -> EmptyProgram!!!

50,47* returns 2350 (i.e. 47*50)
50,47/ returns 0.94 (i.e. 47/50)
100,8! returns 40320 (i.e. factorial of 8)
100D* returns 10000 (i.e. 100*100)
! returns StackUnderflowException!!!
5,2/! returns FloatingFactorialException!!!
4,3!2*/ returns 3
654,489,48,43/5*7D+-*% returns 77.68749999999909 (i.e. 43/48*5-(7+7)*489%654)
returns EmptyProgram!!!

50,47*                 -> 2350
50,47/                 -> 0.94
100,8!                 -> 40320  
100D*                  -> 10000
!                      -> StackUnderflowException!!!
5,2/!                  -> FloatingFactorialException!!!  
4,3!2*/                -> 3 
654,489,48,43/5*7D+-*% -> 77.68749999999909
                       -> EmptyProgram!!!
added 13 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53

Your program should take the input on the command line, or from std in. Input will only consist of numbers (no scientific notation or decimals) delimited by , as needed, and the operations defined above.

Note all error output to should got yo std err or closest equivalent.

Notes:

Note that all numbers are constrained to 64-bit floating point.

  • All error output to should got yo std err or closest equivalent.
  • All numbers are constrained to 64-bit floating point.

Your program should take the input on the command line, or from std in. Input will only consist of numbers (no scientific notation) delimited by , as needed, and the operations defined above.

Note all error output to should got yo std err or closest equivalent.

Note that all numbers are constrained to 64-bit floating point.

Your program should take the input on the command line, or from std in. Input will only consist of numbers (no scientific notation or decimals) delimited by , as needed, and the operations defined above.

Notes:

  • All error output to should got yo std err or closest equivalent.
  • All numbers are constrained to 64-bit floating point.
added 4 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53

50,47* returns 2350 (i.e. 47*50)
50,47/ returns 0.94 (i.e. 47/50)
100,8! returns 40320 (i.e. factorial of 8)
100D* returns 10000 (i.e. 100*100)
! returns StackUnderflowException!!!
5,2/! returns FloatingFactorialException!!! 
4,3!2*/ returns 3 
654,489,48,43/5*7D+-*% returns 77.68749999999909 (i.e. 43/48*5-(7+7)*489%654)
returns EmptyProgram!!!

50,47* returns 2350 (i.e. 47*50)
50,47/ returns 0.94 (i.e. 47/50)
100,8! returns 40320 (i.e. factorial of 8)
100D* returns 10000 (i.e. 100*100)
! returns StackUnderflowException!!!
5,2/! returns FloatingFactorialException!!! 4,3!2*/ returns 3 654,489,48,43/5*7D+-*% returns 77.68749999999909 (i.e. 43/48*5-(7+7)*489%654)
returns EmptyProgram!!!

50,47* returns 2350 (i.e. 47*50)
50,47/ returns 0.94 (i.e. 47/50)
100,8! returns 40320 (i.e. factorial of 8)
100D* returns 10000 (i.e. 100*100)
! returns StackUnderflowException!!!
5,2/! returns FloatingFactorialException!!! 
4,3!2*/ returns 3 
654,489,48,43/5*7D+-*% returns 77.68749999999909 (i.e. 43/48*5-(7+7)*489%654)
returns EmptyProgram!!!

Tweeted twitter.com/StackCodeGolf/status/672374228562374657
added 13 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53
Loading
deleted 117 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53
Loading
edited tags
Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Loading
added 52 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53
Loading
deleted 174 characters in body
Source Link
Doorknob
  • 71.7k
  • 20
  • 143
  • 385
Loading
deleted 3 characters in body
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53
Loading
Source Link
J Atkin
  • 5.1k
  • 1
  • 23
  • 53
Loading