(Advance Web Programming) – Creating an application that obtains four values from the user and display’s the product

(Advance Web Programming) - Creating an application that obtains four values from the user and display's the product
(Last Updated On: April 28, 2019)

(Advance Web Programming) – Creating an application that obtains four values from the user and display’s the product(Advance Web Programming) - Creating an application that obtains four values from the user and display's the product

Program

using System;

class Passingvalues
{
public static void Main(string[] args)
{
Console.WriteLine(“Enetr the four numbers”);
int a=int.Parse(args[0]);
int b=int.Parse(args[1]);
int c=int.Parse(args[2]);
int d=int.Parse(args[3]);
Console.WriteLine(“product”+ a*b*c*d);

}
}

Output

(Advance Web Programming) - Creating an application that obtains four values from the user and display's the product

 

Leave a Comment

Your email address will not be published. Required fields are marked *