Skip to content

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.

2 participants