richie o donoghue

Greenhorn
+ Follow
since Dec 15, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by richie o donoghue

public class WriteValues
{
public static void main (String[] args)
{
int count = 1;
while (count <= 30)<br /> {<br /> System.out.println ("The value of count is now " + count);<br /> count = count + 1;<br /> }<br /> }<br /> }<br /> I DONT KNOW IF THAT WILL WRITE THEM OUT IN DESCENDING ORDER.THIS WAS MY ATTEMPT.<br /> THE FIRST PART TO ENTER 3 INTEGERS I TYPED-public class AscendingOrder<br /> {<br /> public static void main (String[] args)<br /> {<br /> int integer1;<br /> int integer2;<br /> int integer3;<br /> System.out.println ("Please enter an integer and press return");<br /> integer1 = Reader.readInt;<br /> System.out.println ("Please enter a second integer and press return");<br /> integer2 = Reader.readInt;<br /> System.out.println ("Please enter a third integer and press return");<br /> integer3 = Reader.readInt;<br /> <br /> if (integer1 > integer2 > integer3)
System.out.println

AND IM STUCK ON THE SQUARE ROOTS THING???
HELP
22 years ago
hi i was wonderin if any 1 could help me with these problems???Write a program that accepts 3 integer values and outputs them in ascending order.
a) Write a program that outputs the numbers from 30 to 1 (in descending order).

b) Write a program that outputs the numbers from 0 to 20 and their squares, i.e., program output should look like this:

The square of 0 is 0.
The square of 1 is 1.
The square of 2 is 4.
:
:
The square of 20 is 400.

c) Write a program that asks the user for a positive number between 1 and 100 inclusive. If the user enters a valid number, the program then outputs a list of the even numbers between 1 and that number inclusive; if the user enters an invalid number, the program outputs an error message.

22 years ago