// GetData() method accepts order number and quantity
// that are used in the Main() method
// Price is $3.99 each
using System;
using static System.Console;
class DebugEight1
{
static void Main()
{
int orderNum, quantity;
double total;
const double PRICE_EACH = 3.99;
GetData(orderNum; quantity);
total = quantity * PRICEEACH;
WriteLine("Order #{0}. Quantity ordered = {1}",
orderNum, quantity;
WriteLine("Total is {0}", total.ToString("C"));
}
public static void GetData(out order, out amount)
{
String s1, s2;
Write("Enter order number ");
s1 = ReadLine;
Write("Enter quantity ");
s2 = ReadLine;
order = ConvertToInt32(s1);
amount = ConvertToInt32(s2);
siddhartha sharnaPosted May 7, 2018, 9:08 AM
Bhuvanesh MohankumarPosted Dec 7, 2017, 3:50 PM
Khaja MoizuddinPosted Nov 12, 2017, 7:44 AM
Ravi PatelPosted Nov 11, 2017, 2:07 PM
Ya BoiPosted Nov 11, 2017, 2:00 PM
Ravi PatelPosted Nov 11, 2017, 1:55 PM
Ya BoiPosted Nov 11, 2017, 1:52 PM
Ravi PatelPosted Nov 11, 2017, 1:48 PM
Ya BoiPosted Nov 11, 2017, 1:43 PM
Ravi PatelPosted Nov 11, 2017, 1:36 PM
Ya BoiPosted Nov 11, 2017, 1:27 PM
Ravi PatelPosted Nov 11, 2017, 12:28 PM