How to calculate diameter, circumference and area of a circle by using radius---
Hello!
I have been trying to learn C language.I bought a book "C How to Program,Deitel& Deitel"...I make practise by myself,but sometime it get harder for me...i searched good examples on the internet.i have two example of four,which i couldnt do.these are;
1) Write a program that declares 2 floating point numbers and initializes them to 1.5 and 5.5 respectively. Find the multiplication and sum of both those numbers and print the results on screen.
2)Write a program that enters the radius of a circle and prints the circle’s diameter, circumference and area. Perform each of these calculations inside the printf statements.
Somebody help me?I think,i did everything what i must to do..but is doesnt work =(
Hello!
I have been trying to learn C language.I bought a book "C How to Program,Deitel& Deitel"...I make practise by myself,but sometime it get harder for me...i searched good examples on the internet.i have two example of four,which i couldnt do.these are;
1) Write a program that declares 2 floating point numbers and initializes them to 1.5 and 5.5 respectively. Find the multiplication and sum of both those numbers and print the results on screen.
2)Write a program that enters the radius of a circle and prints the circle’s diameter, circumference and area. Perform each of these calculations inside the printf statements.
Somebody help me?I think,i did everything what i must to do..but is doesnt work =(
Comment