Find ceil of a / b without using ceil ( ) function | taking input 1 ; example of perfect division taking input 2
var a = 4 ; var b = 3 , val = 0 ; if ( ( a % b ) != 0 ) val = parseInt ( a / b ) + ( a % b ) ; else val = parseInt ( a / b ) ; document . write ( " " + " " + val + " " ) ; a = 6 ; b = 3 ; if ( ( a % b ) != 0 ) val = parseInt ( a / b ) + ( a % b ) ; else val = parseInt ( a / b ) ; document . write ( " " + " " + val ) ;