blob: f019eddb052c0c0bfd30a234932c8b7c7523b3d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
//Initialization of variables
sr=2
//calculations
hr=sr^2
capr=sr
hpr=sr^3
//results
printf("head is %d times the original",hr)
printf("\n capacity is %d times the original",capr)
printf("\n power is %d times the original",hpr)
|