• Register
0 votes
137 views

Problem:

I am finding code and not able to used right code so that I can get right output, can anyone tell the right code?
Rearrange the code so that it forms a correct program that prints out the letter q:?
 
7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

You can try some of the approaches, yo can get solution to your query: 

 

public class Q
{
public static void main(String[] args) {
System.out.println(\"Q\");
}

}

or 

 


public class Q{
   public static void main(String[] a){
      System.out.println("Q");
   }
}

Hope you got right solution.

8 5 2
10,530 points

Related questions

0 votes
1 answer 103 views
103 views
Problems: I need help in programming to solve my issue. Is there anyone who can help me ? Write a complete main method that prints Hello, world to the screen?
asked Feb 13, 2020 maddi86 5.4k points
0 votes
1 answer 250 views
250 views
Problem: I am new and learning, I need help, can anyone help by filling in the blanks? The ability for a protocol or program to determine that something went wrong is known as ________?
asked Feb 21, 2020 maddi86 5.4k points
0 votes
2 answers 90 views
90 views
Problem: I am new, I need help, can anyone help me by filling in the blanks? The ____ function determines the lowest number in a range?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 135 views
135 views
Problem: I am new in programming and when running below code getting some unexpected error, can anyone help me with right result after running this code? Given the following code, what will be the value of finalAmount when it is displayed? public class Order { ... getOrderAmount() - order.getOrderAmount() * order.getOrderDisc(); System.out.println("Final order amount = $" + finalAmount); } }
asked Feb 18, 2020 maddi86 5.4k points
1 vote
1 answer 310 views
310 views
Problem: I wrote a program in python that asks the user for a number n and prints the sum of the numbers 1 to n: x = 1, addition = 0 n = int(input('Please enter a number:')) for i in range(x, n): addition = addition + i print (addition) But when ... n): TypeError: 'tuple' object cannot be interpreted as an integer Is there any thing that is missing from my code. Please help me to solve this out.
asked Jun 10, 2020 samhaz 5k points
3 votes
1 answer 2.8K views
2.8K views
Problem: Hello good soul, I am a student of basic java programming. I was solving beginner-level problems from there. Right now I got a problem that says, write a program that squares an integer and prints the result. Well, I am not one of those who always look solution for their assignment on StackOverflow or other sites. I just want to learn the process. Thanks for your help.
asked Mar 24, 2020 Gavin 15.3k points
0 votes
1 answer 169 views
169 views
Problem: I am new in programming and my logic is not good, can anyone give the right solution? Which of the following could not be a linear programming problem constraint? A.1A + 2B ≤ 3 B.1A + 2B ≥ 3 C.1A + 2B = 3 D.1A + 2B + 3C + 4D ≤ 5 E.1A + 2B
asked Feb 22, 2020 maddi86 5.4k points
0 votes
1 answer 19 views
19 views
Problem: Hi there! I am new to the world of programming. My programming teacher gave me an assignment in which I have to write a program in which there would be a function that will take two strings as input from user and will compare the size of both strings ... the larger string of the two. I have no clue how to do that. Please provide me with the sample program with proper description. Thanks
asked Nov 25, 2020 Code Learner 5.1k points