desislava_topuzakova

04. Inches to Centimeters

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