heres a quick one in c++ it calculates the size of a hdd by the parameter you type in and displays the size in megabytes.
integers (a,b,c ) and it works
#include <iostream>
using namespace std;
int main()
{
int a = 35202;
int b = 16;
int c = 63;
int d = 512;
int e = 1024;
int f = 1024;
int sum = a * b * c * d / e / f;
// this is just a down and dirty hdd size calculator.
cout << sum;
return 0;
}