fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int a,b,c,m,z;
  7.  
  8. cin>>a>>b;
  9. c=a*12*2.54 ;
  10. m=b*2.54;
  11. z=(c+m);
  12. cout<<a<<"'"<<b<<"”"<<"="<<z;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4524KB
stdin
6
2
stdout
6'2”=187