Guest User

Untitled

a guest
Apr 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Module VATcalc
  2.     Sub main()
  3.         Dim intPrice As Integer
  4.         Dim sinTotal, sinVat As Single
  5.  
  6.         Console.WriteLine("rhoi y pris i mewn, os gwelwch yn dda")
  7.         intPrice = Console.ReadLine
  8.  
  9.         sinVat = intPrice * 17.5 / 100
  10.  
  11.         Console.WriteLine("Y VAT yw {0}", sinVat)
  12.  
  13.         sinTotal = intPrice + sinVat
  14.  
  15.         Console.WriteLine("Y pris newydd yw {0}", sinTotal)
  16.  
  17.         Console.ReadLine()
  18.  
  19.     End Sub
  20. End Module
Add Comment
Please, Sign In to add comment