Code:
num = 4.4;
function ceil(num) {
x = num;
x = x - x % 1;
x = x + 1;
return x;
}
document.write(ceil(num));
Result:
5
10xCoderKids is your partner in the journey to become 10x Coder !!!
Good morning, everyone. I'm Saion Gupta, the Founder of 10xCoderKids and the Guinness World Record holder for the youngest computer prog...
No comments:
Post a Comment