summaryrefslogtreecommitdiff
path: root/172/CH2/EX2.1/ex1.sce
blob: c6f730a043051a2c0410573f4f6076f07fc90f37 (plain)
1
2
3
4
5
6
7
8
//example 1
//weight of a person
clear
clc
m=1 //kg
g=9.75 //acc.due to gravity in m/s^2
F=m*g //weight of 1 kg mass in N
printf("\n hence,weight of person is F = %.3f N. \n",F)