divide intagers javascript
var quotient = Math.floor(y/x);
var remainder = y % x;
divide intagers javascript
var quotient = Math.floor(y/x);
var remainder = y % x;
javascript division get remainder
var y=11;
var x=4;
var quotient = Math.floor(y/x); //2
var remainder = y % x; //3
how to do division in javascript
//To add in Java script, you have to put an forward slash symbol '/' between them. If you have stored two numbers in variables, just put a forward slash symbol between the variable names.
//For example:
var a = 30
var b = 6
var c = a/b
var d = 30/6
Bot.send (c)/ print (c)// or whatever you use to get output
Bot.send (d)/ print (d)// or whatever you use to get output
//output will be: 5, 5
//Don't forget to upvote this answer if you found it helpful. It will help others too!
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us