fork download
  1. Class Q666771
  2. Public Shared Sub Main()
  3. System.Console.WriteLine(GetPageCount(1))
  4. System.Console.WriteLine(GetPageCount(15))
  5. System.Console.WriteLine(GetPageCount(16))
  6. System.Console.WriteLine(GetPageCount(30))
  7. System.Console.WriteLine(GetPageCount(50))
  8. End Sub
  9.  
  10. Public Shared Function GetPageCount(total As Integer) As Integer
  11. Return System.Convert.ToInt32(System.Math.Ceiling(total / 15))
  12. End Function
  13.  
  14. End Class
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


Assembly 'prog, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' saved successfully to '/home/TUN0ng/prog.exe'.
Compilation successful
Compilation took 00:00:01.0675560
stdout
1
1
2
2
4