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 n positive numbers. The program will terminate if one of those number is not posi...
-
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 will ask the user to input three integer values from the keyboard. Then it will print the smallest and...
-
Here is Java code to find a Grade of Student , we must to input Quiz , Mid Term , and Final Score to see a Result Grade of Student ;) ...
-
This Page is taking about News of Technoloy , Code Programming Languages , and other about IT . Welcome all guy to RPCoder ^^ ,
-
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...
-
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...
-
Justin Bieber has been left behind by the Instagram Rapture. The "Baby" crooner lost a whopping 3.5 million followers after Ins...
-
This Java code is to sum two number , not for sum only and user can use it for Calculator of Two Number ;) . Because it have all ...
About Me
Powered by Blogger.
0 comments:
Post a Comment