Created
August 24, 2017 03:58
-
-
Save headHUB/de8e34efed2f627f988cd92d1ab49f5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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