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
Yahya Hammoud
NA
4
449
how can I make a y/n question
Jun 5 2021 11:22 AM
Console.WriteLine("Penalty (y/n)?");
var num4 = Console.ReadLine();
pen = Convert.ToInt32(num4);
// and if answer is yes I want to give the var a value like 100
//and if answer is no his value will be 0
Reply
Answers (
1
)
Boolean Value Display
Creating a step-wise Wizard in ASP.net MVC 5