Computer Science, asked by vshal1373, 7 months ago

Write a program to print 1 to 100 numbers using while.

Answers

Answered by InfiniteSoul
13

class abc

{

public static void main ( String args[] )

{

int a = 1;

{

while ( a < 101 )

{

System.out.println( a ) ;

a++;

}

}

}

}

⠀⠀⠀⠀

\sf{\red{\boxed{\bold{More\: about \: java}}}}

  • 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
  1. Abstraction :- The act of representing the Essential features of an object without knowing its background and details is known as abstraction
  2. Encapsulation :- The act or way in which data and methods / functions are combined together in the form of single unit is known as encapsulation .
  3. Interitance :- The act or process of acquiring the properties from an existing class by another class is known as inheritance .
  4. Polymorphism:- The act or process of defining an object in many forms represented by the same name is known as polymorphism .
Similar questions