Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TahtienTulostus {
- public static void tulostaTahtia(int maara) {
- for (int i = 0; i <= maara; i++) {
- System.out.print("*");
- }
- System.out.println("");
- }
- public static void main(String[] args) {
- tulostaTahtia(5);
- tulostaTahtia(10);
- tulostaTahtia(8);
- }
- }
Add Comment
Please, Sign In to add comment