+ 1

I cant get through this code , tryed it many times can someone help

You are a cook in a restaurant. You need exactly 3 crabs to cook your special seafood dish named "Trio". Write a program that will take the number of crabs as input and output how many "Trio" dishes can be made. Sample Input 14 Sample Output 4

7th Feb 2022, 8:33 AM
Kelzang Thinley
Kelzang Thinley - avatar
4 Answers
+ 3
Plz share your attempt.
7th Feb 2022, 8:38 AM
Edilson Zau
Edilson Zau - avatar
0
//declare and assign variable totalCrabs let totalCrabs = 14; // calculate the number of dishes we can make let nrDishes = (totalCrabs - (totalCrabs%3))/3; //print to console the result console.log(nrDishes);
22nd Mar 2023, 8:20 AM
Alexandrina Trifan