Q:

Looping Statement : do-while Statement using C# Language

0

This Program is used to calculate multiplication in any number by using do-while statement

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;

public class exam1

  {

     public static void Main()

       {

          int i = 1, n = 5, product;

            do

               {

            product = n * i;

            Console.WriteLine("{0} * {1} = {2}", n, i, product);

            i++;

                } while (i <= 10);

       }

}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now