Skip to content

Instantly share code, notes, and snippets.

@headHUB
Created August 24, 2017 03:58
Show Gist options
  • Save headHUB/de8e34efed2f627f988cd92d1ab49f5d to your computer and use it in GitHub Desktop.
Save headHUB/de8e34efed2f627f988cd92d1ab49f5d to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <fstream>
#include <cassert>
#include <cstdlib>
#include <ctime>
#include <cctype>
#include <algorithm>
#include <locale.h>
#include <stdio.h>
#include <functional>
#include <sstream>
#include <cstdlib>
using namespace std;
/*James Head
* Inches to Centimeters
* 08/23/2017
*/
int main() {
double inches = 12.0;
double centimeters = 0.0;
centimeters = inches * 2.54;
cout<<centimeters<<endl;
cout<<inches<<" inches equals "<<centimeters<<" centimeters."<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment