Missing the inclusion of appropriate header file in c program will generate an error. Such a program may compile but the linker will given an error message as it will not be able to find the functions used in the program.

The test expression done on exact statement. The good habit of using test expression on exact or fulfill statement. So do not use floating point numbers for checking for equality in the test expression.

Specifier is a typedef-name and a very sensitive in C programming. Using an incorrect specifier for the data type being read or written will generate a run time error.

When you are using SWITCH case, it is important to keep in mind that the inclusion of DEFAULT LABEL. This will inform you whether you are executing your program in right or wrong way. So, it is always recommended to use DEFAULT LABEL in the SWITCH st

The iterative statement is one of the most important and interesting statements in the programming world. An iterative statement is used to repeat the execution of a list of statements, depending on the value of an integer expression.

// AHF C PROGRAM SOLVING //solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { float F,C,K,T1,T2,T3,T4,T5,T6,T7,T8,T9; pf("Enter THE FAHRENHEIT temperature: "); scanf("%f",&F); T1=F; pf("The FAHRENHEIT temperature is: %f",T1); T2=(F-32)*5/9; pf("\nThe Celsius temperature is: %f",T2); T3=(F-32)*5/9+273.15; pf("\nThe kelvin temperature is: %f",T3); pf("\nEnter the CELSIUS temperature: "); scanf("%f",&C); T4=(C*9/5)+32; pf("\nThe FAHRENHEIT temperature is: %f",T4); T5=C; pf("\nThe Celsius temperature is: %f",T5); T6=C+273.15; pf("\nThe kelvin temperature is: %f",T6); pf("\nEnter the Kelvin temperature: "); scanf("%f",&K); T7=(K-273.15)*9/5+32; pf("\nThe FAHRENHEIT temperature is: %f",T7); T8=K-273.15; pf("\nThe Celsius temperature is: %f",T8); T9=K; pf("\nThe kelvin temperature is: %f",T9); return 0; }

Enter THE FAHRENHEIT temperature: 100

The FAHRENHEIT temperature is: 100.000000

The Celsius temperature is: 37.777779

The kelvin temperature is: 310.927765

Enter the CELSIUS temperature: 30

The FAHRENHEIT temperature is: 86.000000

The Celsius temperature is: 30.000000

The kelvin temperature is: 303.149994

Enter the Kelvin temperature: 273

The FAHRENHEIT temperature is: 31.730000

The Celsius temperature is: -0.150000

The kelvin temperature is: 273.000000

The FAHRENHEIT temperature is: 100.000000

The Celsius temperature is: 37.777779

The kelvin temperature is: 310.927765

Enter the CELSIUS temperature: 30

The FAHRENHEIT temperature is: 86.000000

The Celsius temperature is: 30.000000

The kelvin temperature is: 303.149994

Enter the Kelvin temperature: 273

The FAHRENHEIT temperature is: 31.730000

The Celsius temperature is: -0.150000

The kelvin temperature is: 273.000000

- A general instruction for cleaning room by a robot
- Input any number and find color name
- Given four co-ordinates and find the area of a rectangle
- Given number is square able or not
- Enter positive number and convert negative number and vice versa
- Profit or loss on selling goods
- Calculate area and circumference of circle
- In a integer, count digits,sum of digits,reverse the integer and print even and odd digits of the integer
- Find the basic salary, facilities on total salary except tax
- Calculate roots of quadratic equation
- Solve simple formula solution

© 2018 - All rights reserved