Advertisement
Spocoman

04. Inches to Centimeters

Aug 22nd, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     double inches;
  6.     cin >> inches;
  7.  
  8.     double centimeters = inches * 2.54;
  9.  
  10.     cout << centimeters << endl;
  11.  
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement