Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f=2;
- char c='y';
- System.out.print(kpltulostus1(c));
- System.out.print(kpltulostus(f));
- }
- public static int kpltulostus1 (char b){
- int x=10;
- while (x>0){
- System.out.print(b);
- x--;
- }
- return b;
- }
- public static int kpltulostus (int k){
- int h=15;
- while (h>0){
- System.out.print(k);
- h--;
- }
- return k;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement