0
fun main(args: Array<String>) { var total = 200 printIn(total % 7) }
Q. You are making gift boxes. Each box contains 7 items. Given 200 items in total, you need to calculate and output how many items will be left over , if you create gift boxes from all of the items. (The modulo operator % can be useful to solve the challenge.)
3 Answers
+ 1
let items = 200;
console.log(items%7);
+ 1
BS