//Downloaded From theonlinetutorials.com
//(C)1999.All rights reserved.
//program to convert given inches to yard , feet & inches
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,y,f,in;
cout<<"Enter the value in inches :"<<endl;
cin>>i;
y=(i/36);
f= ((i%36)/12);
in = ((i%36)%12);
cout<<y<<" Yard & "<<f<<" Feets "<<in<< " Inches ";
getch();
}
Not Satisfied ? Just search & get the result
Related posts:
- C++ program – Convert Height to feet and Inches
- C++ Program – Convert Celsius To fahrenheit
- Sample – Program to convert days into years and weeks.
- Sample – Program to convert temperatures from Celsius to Fahrenheit and vice versa.
- C++ program – convert an Expression from Infix expression to Prefix form
