SHARE
TWEET

Untitled

a guest Jul 17th, 2017 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int count5rec(int zahl){
  2.         if (zahl == 0){
  3.             return 0;
  4.         }
  5.         else if (zahl%10 == 5){
  6.             return 1 + count5rec(zahl/10);
  7.         }
  8.         else{
  9.             return count5rec(zahl/10);
  10.         }
  11.     }
RAW Paste Data
Top