## WAP to convert weight from kg to pound

Write a program that requests a user to enter weight in kg. The program converts it in pounds (pound = 2.2*kg). /* Write a program that requests a user to enter weight in kg. The program converts it in pounds (pound = 2.2*kg) */#include<stdio.h> #include<conio.h>int main() { float kg,po; printf("Enter weight in kg:\n"); scanf("%f",&kg); ...

## WAP to calculate the area of a triangle

Write a program to calculate the area of a triangle with sides a, b, and c. /* Write a program to compute the area of a triangle with sides a,b,c */#include<stdio.h> #include<conio.h> #include<math.h>int main() { float a,b,c,s,A; printf("Enter value of a, b and c.\n"); scanf("%f%f%f",&a,&b,&c); s = (a+b+c)/2; A = sqrt(s*(s-a)*(s-b)*(s-c)); ...

## WAP to calculate the area and circumference of a circle

Write a program to read the radius of a circle and to compute its area and circumference. Use a symbolic constant to define the value of π. /* Write a program to read the radius of a circle and to compute its area and circumference. Use a symbolic constant to define the value of pie...

## WAP to accept temperature in Fahrenheit and convert it into degree Celsius

Write a program to accept temperature in Fahrenheit and convert it into degree CelsiusF = (C*9/5)+32 /* Write a program to accept temperature in Fahrenheit and convert it into degrees Celsius hint: F=(C*9/5)+32 */#include<stdio.h> #include<conio.h>int main() { float f,c; printf("Enter value in fahrenheit:\n"); scanf("%f",&f); c = (f-32)*5/9; printf("Value in celcius is %.10f",c); ...

## WAP to display the ASCII value of a given character

Uppercase A has ASCII value 65 in decimal .So for Z ,the value is 90 in decimal. Lowercase a has ASCII value 97 in decimal .So for z ,the value is 122 in decimal. Write a program to display the ASCII value of a given character #include<stdio.h> #include<conio.h>int main() { char ch; printf("Enter any character:\n"); scanf("%c",&ch); printf("ASCII value of %c is %d",ch,ch); getch(); return...