@vncpetrov/

InchesToCentimeters

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.36834506943252543","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgY291dCA8PCAiSW5jaGVzID0gIjsKCWRvdWJsZSBpbmNoZXM7CgljaW4gPj4gaW5jaGVzOwoJZG91YmxlIGNlbnRpbWV0ZXJzID0gaW5jaGVzICogMi41NDsKCWNvdXQgPDwgIkNlbnRpbWV0ZXJzID0gIjsKCWNvdXQgPDwgY2VudGltZXRlcnMgPDwgZW5kbDsKCiAgcmV0dXJuIDA7Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
using namespace std;

int main() {
  cout << "Inches = ";
	double inches;
	cin >> inches;
	double centimeters = inches * 2.54;
	cout << "Centimeters = ";
	cout << centimeters << endl;

  return 0;
}