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
A X
NA
18
8.9k
Whats wrong with my code?
Aug 29 2013 4:12 PM
hello i am just practicing this code but it wont execute. there is a squiggly line under PARSE can somebody help me please?
namespace practice_for_me
{
class Program
{
static void Main(string[] args)
{
string ampm;
int h, m;
Console.Write("Please enter the hour : ");
h= Int32.Parse.Console.ReadLine();
Console.Write("Please enter the minutes : ");
m = Int32.Parse.Console.ReadLine();
Console.Write("Is it am or pm?:");
ampm = Console.ReadLine();
if (ampm == "pm")
h = h + 12;
Console.Write("The military time of the information entered is : " + h + ":" + m + ampm);
}
}
}
Reply
Answers (
1
)
How to get value of all rows from a column in a DataTable?
how to add hex string to windows registry?