#include <iostream> //Header file using namespace std; const double CENTIMETERS_PER_INCH = 2.54; //Named constants const int INCHES_PER_FOOT = 12; //Named constants int main () { int feet, inches; int totalInches; double centimeter; cout << "Enter two integers, one for feet and one for inches: "; cin >> feet >> inches; cout << endl; cout << "The numbers you entered are " << feet << " for feet and " << inches << " for inches. " << endl; totalInches = INCHES_PER_FOOT * feet + inches; cout << "The total number of inches = " << totalInches << endl; centimeter = CENTIMETERS_PER_INCH * totalInches; cout << "The number of centimeters = " << centimeter << endl; return 0; }
- Home
- C Programming
- _Algorithm & Flow Chart in C
- _Introduction to C
- _Control Statement & Looping
- _Function in C
- _Array in C
- _Pointer in C
- _Structure & Union in C
- _List of C Programs
- __Tricky Programs
- __Pattern in C
- _C Compiler
- _C Programming हिंदी में (Videos के साथ)
- C++ Programming
- _List of C++ Programs
- _C/C++ Questions
- _Minor Project 2021-22
- Projects
- App. Physics
- _Assignment 1 (2023-24)
- _Assignment 2 (2023-24)
- _Assignment 3 (2023-24)
- _AP Assignment 2
- _AP Assignment 3
- _Assignment No.2.1
- _Assignment No. 2.2
- _Office Automation & Tools
- _Introduce Yourself
- Online Exams
- _Online Attendance
- _Interview Questions
- _Youtube Channel
- More Tutorials
- _UPBTE Links
- _URISE
- _Internal Marks
- _Enrolment No
- _More Tutorials