Write a program to print 1 to 100 numbers using while.
Answers
Answered by
13
class abc
{
public static void main ( String args[] )
{
int a = 1;
{
while ( a < 101 )
{
System.out.println( a ) ;
a++;
}
}
}
}
⠀⠀⠀⠀
- The object oriented programming is a programming methodology that helps to organize set of instructions in a proper sequence to develop program or software .
- Java is an example of Object oriented programming .
- Principle of object Oriented programming
- Abstraction :- The act of representing the Essential features of an object without knowing its background and details is known as abstraction
- Encapsulation :- The act or way in which data and methods / functions are combined together in the form of single unit is known as encapsulation .
- Interitance :- The act or process of acquiring the properties from an existing class by another class is known as inheritance .
- Polymorphism:- The act or process of defining an object in many forms represented by the same name is known as polymorphism .
Similar questions