Computer Science, asked by garvit1294, 11 months ago

write a program to print a table of 5 using do while loop in java​.

Answers

Answered by amannishad0512p5zxh6
2

class Table5

  {

       public static void main()

           {

                int  n=5,i=1,t=0;

          System.out.println("Table of 5 is :-");

            do

              {

                     t=5*i;

                      System.out.println("5 *" +i+"= "+t);

                    i++;

}

                while(i<=10);

}

}

Hope it will help you @

Mark me brainlest @

And follow me for more java programming,logics and tricks.

Similar questions