Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class demo10 {
- public static void main(String[] args){
- int luku = Integer.parseInt(args[0]);
- if (luku % 2 == 0){
- System.out.println("virhe");
- }
- else {
- String aku = "";
- for (int i = 0; i < luku/2+1; i++){
- aku += "*";
- System.out.println(aku);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement