Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. int f=2;
  2. char c='y';
  3.  
  4. System.out.print(kpltulostus1(c));
  5. System.out.print(kpltulostus(f));
  6. }
  7. public static int kpltulostus1 (char b){
  8. int x=10;
  9. while (x>0){
  10. System.out.print(b);
  11. x--;
  12. }
  13. return b;
  14. }
  15. public static int kpltulostus (int k){
  16. int h=15;
  17. while (h>0){
  18. System.out.print(k);
  19. h--;
  20. }
  21. return k;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement