Skip to content
Snippets Groups Projects
misc.cpp 183 B
Newer Older
  • Learn to ignore specific revisions
  • Lubomir Riha's avatar
    Lubomir Riha committed
    #include <iostream>
    #include "misc.h"
    
    int divide_and_round_up(int const n, int const d) {
            if (n % d == 0) {
                    return n/d;
            }
            return (n/d + 1);
    }