Write a program for calculating the caloric content of Muffin’s breakfast:
50 * (42 / 100);in the editor and look at the result in the console.
100 grams of milk contain 42 calories. That’s where the numbers come from.
Congratulations! You are now a qualified programmer on Muffin’s team. How does a cat choose a human for itself? Nobody knows. But once it has chosen you, you need to start showing your best.
Know nothing about programming? No worries, we’ll teach you!
Let’s take a look at your workplace:
Everything is set up, including a cup of tea. Let’s go!
First task: write a program for calculating the nutritional value of 50 grams of milk (Muffin’s morning snack).
;. To complete the task, enter one command in the console:
50 * (42 / 100);
That’s our program, just one command. But it works!