Lab01part2 - cout<<"The...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; u int main (void) { double cm; int yards, feet, inches; i cout<<"Enter centimeters\n"; cin>>cm; inches=(cm/2.54)+.5; yards=inches/36; inches=inches%36; feet=inches/12; inches=inches%12;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout&lt;&lt;&quot;The number of yards is &quot;&lt;&lt;yards&lt;&lt;endl; cout&lt;&lt;&quot;The number of feet is &quot;&lt;&lt;feet&lt;&lt;endl; cout&lt;&lt;&quot;The number of inches is &quot;&lt;&lt;inches&lt;&lt;endl; system (&quot;PAUSE&quot;); return 0; }...
View Full Document

Ask a homework question - tutors are online