Easy Programming

Simple Yard to Feet Conversion Practice in C++:

Learn to write a program that simply converts Yards into Feet. This is great practice as it shows you how basic equations work as well as the functions of Cout's, Cin's, as well as system("pause"). Enjoy the video!

Click here to go back

//Programmer:	Nazmus
//Program:		Yard to Feet conversion
//Website:		EasyProgramming.net

#include <iostream>;
using namespace std;

void main()
{

	int yard, feet;

	cout << "Please input number of yards: ";
	cin >> yard;

	feet = yard * 3;

	cout << yard << " yards equal to " << feet << " feet." << endl;

	system("pause");

}