It looks like you're new here. If you want to get involved, click one of these buttons!
can anyone help me whit this code
float diameter; float height; float radius; float surfaceArea; printf("Please enter a diameter: "); scanf("%f",&diameter); printf("Please enter a height: "); scanf("%f",&height); printf("\nDiameter is %f, and height is %f\n", diameter, height); radius = diameter /2; printf("...calculating, please wait...\n"); surfaceArea=(2*PI*(radius*radius))+(2*PI*radius*height); printf("The surface area of your cylinder is %.3f\n", surfaceArea); */
when i try to run it it only ask me for the first number and jumps the second scanf....