OT: C# Homework Help
Posted: Fri Jan 28, 2011 4:58 am
Alright so I'm takin an intro course to C#
We did our Hello World program first and that was very simple and went by with no issues (I'm COMPLETELY new to programming...not a single clue or prior exposure to it)
Alright well I found out what my original problem was but now I have a question.
So I was declaring a constant as 9/5 thinking it would take whatever the value of that fraction was. I converted it to decimal instead and it's working fine, but now my question is, can I declare a constant in a way that I can enter a fraction and it'll use the value of it??
We did our Hello World program first and that was very simple and went by with no issues (I'm COMPLETELY new to programming...not a single clue or prior exposure to it)
Alright well I found out what my original problem was but now I have a question.
So I was declaring a constant as 9/5 thinking it would take whatever the value of that fraction was. I converted it to decimal instead and it's working fine, but now my question is, can I declare a constant in a way that I can enter a fraction and it'll use the value of it??