Category
- Php
- JAVA
- DOTNET
- Vbscript
- C
- vb
- html
- Mysql
- Oracle
- sql
- Db
- Computer
- Commerce
- Business
- Arts
- Cashier
- Audit
- Banking
- Accounts
- Math
- Physics
- Biology
- Others
Home >> Asked Questions >> JAVA
Q. While Loop in a Java
Answer :
class AddNumbers
{
public static void main(String args[])
{
int i=5;
while(i >0)
{
System.out.println("i is : " + i);
i--;
}
}
}
{
public static void main(String args[])
{
int i=5;
while(i >0)
{
System.out.println("i is : " + i);
i--;
}
}
}
Posted By : aman
Most Viewed Questions