Guest User

Untitled

a guest
Jun 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Dim max, punten, procent As Integer
  2. Console.Write("Wat is u maximum te behalen score? ")
  3. max = CInt(Console.ReadLine())
  4. Console.Write("Wat is u behaalde score? ")
  5. punten = CInt(Console.ReadLine())
  6. If punten > max Then
  7. Console.WriteLine("Uw punten zijn groter dan uw maximum!")
  8. ElseIf punten < 0 Then
  9. Console.WriteLine("Uw punten moeten groter of gelijk zijn aan 0!")
  10. Else
  11. procent = punten / max * 100
  12. Console.WriteLine("U heeft " & procent & "% behaald!")
  13. End If
  14. Console.ReadLine()
Add Comment
Please, Sign In to add comment