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
Walter Dibblee
NA
2
702
Need help with CS1501
Apr 9 2018 8:27 AM
Hey I'm very very new to programming and I need help with this code im trying to write a simple program that asks you your name, age, and the date, then ask if the information is correct what I'm trying to do is make it see whether they respond with Yes or No, but I'm getting a CS1501 error and I don't know how to fix it. Please help if you can.
Heres the code, the error is the only thing fully capitalized
using System;
namespace Meem_machine
{
class Program
{
static void Main(string[] args)
{
Console.Write("What is your name? ");
string name = Console.ReadLine();
Console.WriteLine("Hello " + name);
Console.Write("How old are you? ");
string age = Console.ReadLine();
Console.Write("What is the date today? ");
string date = Console.ReadLine();
Console.WriteLine("Your name is " + name + " and you are " + age + " and the date today is " + date);
Console.Write ("Is this correct?") ;
if (Console.READLINE("yes"))
{
Console.WriteLine("Welcome" + name);
}
}
}
}
Reply
Answers (
3
)
Create DB ms sql backup from win form with button click?
Rotativa component throws error could not load file