Computer Science, asked by riteshalhat2018, 9 months ago

B] Write a program to calculate the distance of 1056 feet in terms of yards and miles. Given
fixed Values are 1 mile=1760 yards and 1 yard =3 feet.​

Answers

Answered by srajfaroquee
6

Answer:

Note: I am using C++ programming language.

#include<iostream>

using namespace std;

int main() {

   float yards,feet,miles ;

   cout<<"Enter distance in feet : ";

   cin>>feet ;

   yards = feet / 3 ;

   miles = yards / 1760 ;

   cout<<"\n " <<feet <<" feet in Yards: " << yards <<" and in Miles: " <<miles <<" ." ;

return 0;

}

Please follow me and mark this ans as Branliest answer.Thank you!

Answered by sulabhamenontherambi
1

Explanation:

hope.it would be helpful

Attachments:
Similar questions