// 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);

Ravi PatelRank #439 · 5.7K reputationPosted Nov 11, 2017, 7:28 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 11, 2017, 8:36 AM EST
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Dec 7, 2017, 10:50 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 11, 2017, 8:55 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 11, 2017, 9:07 AM EST
Khaja MoizuddinRank #270 · 9.4K reputationPosted Nov 12, 2017, 2:44 AM EST
siddhartha sharna126 reputationPosted May 7, 2018, 5:08 AM EDT
Ya Boi23 reputationPosted Nov 11, 2017, 8:27 AM EST
Ya Boi23 reputationPosted Nov 11, 2017, 8:43 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 11, 2017, 8:48 AM EST
Ya Boi23 reputationPosted Nov 11, 2017, 8:52 AM EST
Ya Boi23 reputationPosted Nov 11, 2017, 9:00 AM EST