Computer Science, asked by Ajmalthegreat, 8 months ago

Wap to print the multiples of 2 and 3

Answers

Answered by dhruvkalbalia96
0

Answer:

Here's your answer in Java

Explanation:

//multiples up to  10  

class multiples

{

   public static void main (String args[])

   {

       int i;

       

       for(i=1; i<=10; i++)

       {

           int a = 2*i;

           System.out.println("2 * " +i+" = " +a);

       }

       

           for(i=1; i<=10; i++)

       {

           int b = 3*i;

           System.out.println("3 * " +i+" = " +b);

       }

       

       

   }

}

Similar questions