// Coded with Scilab 6.0.1 on Linux Mint 19
clc;
clear;
//Problem 10-7
//Refer Fig. 10-4
//Given
A1=12.00;  //in cm^2
A2=15.00;  //in cm^2
F1=10.00;  //in N

//Computations
F2=F1*A2/A1;  //in N

printf("The upward force at piston number 2, F2 = %.2f N.", F2)
