C++ Program – Convert given inches to yard , feet & inches

by Nideesh C on May 2, 2011 · 0 comments

in C++




//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 Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C++ program – Convert Height to feet and Inches
  2. C++ Program – Convert Celsius To fahrenheit
  3. Sample – Program to convert days into years and weeks.
  4. Sample – Program to convert temperatures from Celsius to Fahrenheit and vice versa.
  5. C++ program – convert an Expression from Infix expression to Prefix form

Leave a Comment

Previous post:

Next post: