Skip to content
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

Did exercise 2 #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

FilipJinstrand
Copy link

Added

{
Console.Write("Skriv ett pris: ");

int userInput = Convert.ToInt32(Console.ReadLine());
Copy link
Contributor

@lyret lyret Sep 25, 2019

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

Suggested change
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;
Copy link
Contributor

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?

Copy link
Contributor

@lyret lyret left a 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 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants