TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ya Boi
NA
27
8.7k
What am I Doing Wrong?
Nov 11 2017 11:50 AM
// 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);
Reply
Answers (
12
)
How to Using Graph AD For Azure B2C in Xamarin Forms ?
TreeView Check Nodes and Unselect Nodes