-
Notifications
You must be signed in to change notification settings - Fork 25
Did exercise 2 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| { | ||
| Console.Write("Skriv ett pris: "); | ||
|
|
||
| int userInput = Convert.ToInt32(Console.ReadLine()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tänk på att det kan vara enklare att felsöka sin kod om man delar upp varje funktionsanrop på en egen rad
| int userInput = Convert.ToInt32(Console.ReadLine()); | |
| string userConsoleInput = Console.ReadLine(); | |
| int userInput = Convert.ToInt32(userConsoleInput); |
| const double moms = 0.25; | ||
|
|
||
| double medMoms = value * (moms + 1); | ||
| double utanMoms = value * moms; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Är verkligen value * moms samma som värdet utan moms?
lyret
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gav dig lite kommentarer, bra jobbat 👏
Added