Find ceil of a / b without using ceil ( ) function | C # program to find ceil ( a / b ) without using ceil ( ) function ; Driver Code ; taking input 1 ; example of perfect division taking input 2
using System ; class GFG { public static void Main ( ) { int a = 4 ; int b = 3 ; int val = ( a + b - 1 ) / b ; Console . WriteLine ( " The ▁ ceiling " + " ▁ value ▁ of ▁ 4/3 ▁ is ▁ " + val ) ; a = 6 ; b = 3 ; val = ( a + b - 1 ) / b ; Console . WriteLine ( " The ▁ ceiling " + " ▁ value ▁ of ▁ 6/3 ▁ is ▁ " + val ) ; } }