Monday, December 22, 2014
By Sharing News on 5:26 AM
Write a program that will ask the user to input n positive numbers. The program will terminate if one of those number is not positive.
Code here :
public static void main(String[] args) {
int Pos;
Scanner In = new Scanner(System.in);
do
{
System.out.print("Enter Positive Number: ");
Pos = In.nextInt();
}while(Pos>=0);
}
}
Posted in Java Language | No comments
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Write a program that will ask the user to input three integer values from the keyboard. Then it will print the smallest and...
-
Write a program that will ask the user to input n positive numbers. The program will terminate if one of those number is not posi...
-
This Page is taking about News of Technoloy , Code Programming Languages , and other about IT . Welcome all guy to RPCoder ^^ ,
-
Write Java program to print the table of characters that are equivalent to the Ascii codes from 1 to 255. Code Her...
-
Write a program that asks the user to type 10 integers and writes the sum of these integers. Using for loop. Total sum of te...
-
If someone you love is having a tough time right now, there are some things that you can remind them of which will help them trough the...
-
About this , it's will find a Maximize of Three Number ;) . The User Need to Input Three Integer and then its will show the Maxi...
-
Write a program that will display the calculator menu. The program will prompt the user to choose the operation choice ...
About Me
Powered by Blogger.
0 comments:
Post a Comment