I need a simple program to run in terminal displaying the Volume of a cylinder, volume of a cone, area or a trapezoid, and lateral area of a cylinder. Ubuntu 64bit

Can someone please help me??? I've tried using doubles and integers but all of the calculations just read out either 0 or 1.