SHARE
TWEET

Untitled

a guest Apr 15th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MultipleOfTens {
  2.  
  3.     public static void main(String[] args) {
  4.         System.out.println(go(4));
  5.     }
  6.    
  7.     public static String go(int x) {
  8.         if(x<=0) return "Not Applicable";
  9.         String s = "";
  10.         for(int i=1; i<=x; i++) {
  11.             s += i*10 + " ";
  12.         }
  13.         return s;
  14.     }
  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
 
Top