Calculating the product of three integers. : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Calculating the product of three integers.








    


using System;

public class Product {
    public static void Main(string[] args) {
        int x;
        int y;
        int z;
        int result;

        Console.Write("Enter first integer: ");
        x = Convert.ToInt32(Console.ReadLine());

        Console.Write("Enter second integer: ");
        y = Convert.ToInt32(Console.ReadLine());

        Console.Write("Enter third integer: ");
        z = Convert.ToInt32(Console.ReadLine());

        result = x * y * z;

        Console.WriteLine("Product is {0}", result);
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int