Computer Science, asked by offvatsal09, 3 days ago

DATE PA Write a progoam to input following series a)
9
79
579
3579
13579​

Answers

Answered by yadavshrutishruti
1

Answer:

Answer: The required java pragram is :-

public class Main {

public static void main(String[] args) {

    for (int i=9 ; i>=1 ; i-=2) {

        for (int j=i ; j<=9 ; j+=2) {

            System.out.print(j);

        }

        System.out.print(” “);

    }

   }

}

Answered by chandanisingh1511
1

The required java pragram is :

public class Main

{ public static void main(String[] args)

{ for (int i=9; i>=1; i-=2)

{ for (int ji; j<=9; j+=2) {

System.out.print(j);

}

System.out.print(" ");

}

}

}

Similar questions