View difference between Paste ID: yGKCrLAh and DNBvE2UG
SHOW: | | - or go back to the newest paste.
1
#include <iostream>
2
using namespace std;
3
4
int main()
5
{
6
    double km, miles;
7
    cout << "Write length in miles: ";
8
    cin >> miles;
9
    km = miles * 1.609;
10
    cout << "Length in km: " << km;
11
    return 0;
12
}