Program this on JAVA
6758
6785
7865
6587
Answers
Answered by
4
Answer:
This is the required program for the question.
public class GetCódes {
public static void main(String[] args) {
System.out.print("6758\n6785\n7865\n6587");
}
}
Here, \n is a back slash character used to add a new line.
Refer to the attachment for output.
•••♪
Attachments:
![](https://hi-static.z-dn.net/files/d8e/e938110866b64e7aa9a83e710f672570.jpg)
Answered by
1
Answer:
6758
6785
7865
6587
This is a pattern with no logic
The Question is easy but does not have any logic
So the required answer is as follows:-
public class NoLogicPattern {
public static void main (String ar[]){
System.out.println("6758"); System.out.println("6785"); System.out.println("7865"); System.out.println("6587");
}}
Or
public class NoLogicPattern {
public static void main (String ar[]){
System.out.println("6758\n6785\n7865\n6587");
}}
Similar questions