SHARE
TWEET

Untitled

a guest Mar 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object Pierwsze extends App{
  2.  
  3.     def odwroc(str :String) :String={
  4.         def odwrocAcc(str :String,length :Int, acc :String) :String = {
  5.             if(length == 0){
  6.                 return  acc
  7.             }
  8.             odwrocAcc(str, length-1, acc+str(length-1))
  9.         }
  10.         odwrocAcc(str, str.length, "")
  11.     }
  12.  
  13.     var slowo = io.StdIn.readLine()
  14.     print(odwroc(slowo))
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top