blob: 5c67fda41da2ffd734bf3f082e041499e32fede8 (
plain)
1
2
3
4
5
6
|
//Chapter 1, Problem 2
clc;
M=5; //mass in kilogram
A=2; //acceleration in m/s2.
F=M*A; //calculating the force needed
printf("Force = %f N \n\n",F); // displaying the result with unit
|