The following program explains how to take input of four numbers from user and display the product. This is practical Number 1 in asp.net syllabus.

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Prac1

{

class Program

{

static void Main(string[] args)

{

int num1, num2, num3, num4;

int result;

Console.WriteLine(“Enter Number 1”);

num1 = Convert.ToInt32(Console.ReadLine());

Console.WriteLine(“Enter Number 2”);

num2 = Convert.ToInt32(Console.ReadLine());

Console.WriteLine(“Enter Number 3”);

num3 = Convert.ToInt32(Console.ReadLine());

Console.WriteLine(“Enter Number 4”);

num4 = Convert.ToInt32(Console.ReadLine());

result = num1 * num2 * num3 * num4;

Console.WriteLine(“Your Result is  ” + result);

Console.ReadLine();

}

}

}

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

©2018 MYBSCIT.com. An initiative by some failures to make student scholars.

or

Log in with your credentials

Forgot your details?