Advertisement
saimun1

Programming Fundamentals Data Types Elevator

Sep 8th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Exact_Sum_of_Real_Numbers
  8. {
  9.     class Exact_Sum_of_Real_Numbers
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             int n = int.Parse(Console.ReadLine());
  15.             int b = int.Parse(Console.ReadLine());
  16.             int courses = 0;
  17.             int people = 0;
  18.             courses = (int)Math.Ceiling((double)n / b);
  19.  
  20.             Console.WriteLine(courses);
  21.             Console.ReadLine();
  22.  
  23.  
  24.  
  25.         }
  26.     }
  27. }
  28. //https://softuni.bg/trainings/resources/officedocument/11848/lab-problem-descriptions-programming-fundamentals-january-2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement