Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Let us now try comparing two numbers by letting the user input two different numbers and say "Greater" if the first inputted number is greater than the second one, and "Lesser" if it’s the other way around.


Let's go!


Input


A line containing two different numbers separated by a space.


1.2·1.02

Output


A line containing a string.


Greater


Write a program to create your own Exception subclass. You need to also override toString() method to define a tailor made description of your own Exception subclass. Then create a class where an exception of the created Exception subclass is thrown by using throw keyword. You need to define a try and catch block to handle the exception in the main method. Finally, after the exception is handled, print "Exception Handling Completed".

Apply Gauss’s Divergence theorem to evaluate taken over the

sphere being the direction cosines of the external normal to the

sphere.


Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah". Let's try this out now! Input A line containing two integers separated by a space. 777·7 Output A line containing a string. Jackpot!
Write a program in java to accept cost price and selling price of an article and find out loss or profit.

The greatest common divisor, also known as GCD, is the greatest number that will, without a remainder, fully divide a pair of integers.




Now, I want you to make a program that will accept two integers and with the use of loops, print out their GCD. Make good use of conditional statements as well.


Off you go!


Input


A line containing two integers separated by a space.


6·9

Output


A line containing an integer.


3


Only the Even Ones

by CodeChum Admin

I have a list of 3 numbers here with me that's already in the code editor, but I want you to add some more to this list by inputting some more numbers yourself in one line and then, print out only the even numbers from the list.

Can you do that for me?


1. Write down a node structure for this case:

 A teacher wants to manage each student’s master list with a computer

program. A list structure holds the following data; studID, studName,

Course, and Yr_level.


2. Create a program that will accept elements from the user, based on the created

node structure above. The number of elements depends on the no. of items

given by the user. Be able to display all the elements.


The Greater One

by CodeChum Admin

Let us now try comparing two numbers by letting the user input two different numbers and say "Greater" if the first inputted number is greater than the second one, and "Lesser" if it’s the other way around.

Let's go!


Input

A line containing two different numbers separated by a space.

1.2·1.02

Output

A line containing a string.

Greater




The Positive Ones

by CodeChum Admin

There are different kinds of numbers, but among them all, the most commonly used numbers in our daily lives are those positive ones. So, I only want you to count all the positive numbers from the 4 outputted values and print out the result.


Go and search for the positive ones among these four!


LATEST TUTORIALS
APPROVED BY CLIENTS