Questions tagged [simulate]

For issues relating to simulating a system, action, function, or behavior.

Simulation is an attempt to model a real-life or hypothetical situation so that it can be studied to see how the system works. By changing variables in the simulation, predictions may be made about the behaviour of the system. It is a tool to virtually investigate the behaviour of the system under study.

451 questions
-5
votes
1 answer

How to simulate multiplication by addition java

I need to simulate multiplication by addition by not using the operator of multiplication such as asterisk This is my code trial code but seems not working :( while (sum < a + b) { sum += a; } System.out.println (a+" x "+b+" is "+sum); } }
1 2 3
30
31