C program to convert a number in Inch to Feet.
#include<stdio.h>
int main()
{
float inch, feet;
printf(“Enter any number in Inch: n”);
scanf(“%f”, & inch);
//1 Feet = 0.0833333 Inch
feet = 0.0833333 * inch;
printf (“Value in Inch is:n%f”, feet);
return 0;
}
Output:
Related posts:
- C program to convert KM to CM
- C program to convert meter to centimeter
- C program to calculate remainder, difference, division, product
- C program to use printf() without semicolon ” ; “
- C program to swap two numbers using 2 variables
- C program to find nth term using Arithmetic progrssion
- C program to find sum of first n even positive numbers
- C program to calculate sum of first n even numbers
- C program to find nth odd number
- C program to find sum of first n odd positive numbers
- C program to calculate perimeter and area of a rectangle
- C program to calculate perimeter and area of a square
- C program to calculate Perimeter and Area of Circle
- Function in C Programming
- C Programming Q & A
- Main function in C Programming Q and A
- Void main in C Programming
- Variables Q and A in C Programming
- Write a C Program to find the percentage of marks ?
- Write a c program to find age of a person ?
- Write a c program to get table of a number
- What is Break statement in C Programming ?
- Write a c program to generate all combinations of 1, 2 and 3 using for loop.
- Write a C program to print all the prime numbers between 1 to 50.
- Write a C program to get factorial of a number ?
- What is user defined function in C programming ?
- Difference between C and C++ Programming ?
- Difference between C, C++ and Java Programming
- C program addition of numbers using pointer
- C Syntax
- Comments in C
- Variables in C
- Data types in C
- Format specifiers in C
- Type Conversion in C
- Constants in C
- Operators in C
- Pre and Post Increament Practice Problems
- Pre and Post Increament
- Array in C
- C Introduction
- C Get Started
- C Pointers
- C History
- C Program Compiling and running
- C While loop
- C Do While Loop
- C For loop
- break and continue statement
- Control Statements in C
- C if-else ladder
- C if statements
- C 2-Dimensional array
- C String library functions
- C Functions
- C Functions Categories
- C Actual Arguments
- Write a program that prints the message “Hello, World!”
- Write a program that asks the user to enter two numbers, and then prints the sum of those two numbers.
- Write a program that asks the user to enter a number and then determines whether the number is even or odd.
- Write a program that swaps the values of two variables.
- Write a program that asks the user to enter a number and then calculates and prints its factorial.
- Write a program that asks the user to enter a number N and then prints the first N numbers in the Fibonacci sequence
- Write a program that swaps the values of two variables without using a temporary variable
- Converts a number into integer, float, and string
- Program to find the length of the string
- Program to convert string to uppercase or lowercase
- Program to prints the numbers from 1 to 10.
- What is identifier expected error
- Difference between static and non static methods in Java
- C String Input
- C Character input
- C Programming Variables MCQ
- Object & Classes
- C Programming find the output MCQs