0

is my code is correct or not

#include<stdio.h> int main (){ float Radius,Length; printf("Enter the radius and length of a cylinder: "); scanf("%f %f",&Radius, &Length); float Area=(Radius*Radius)*3.1415; printf ("The area is :%.4f \n",Area); float Volume = Area * Length; printf("The volume of cylinder is : %.2f", Volume); return 0; }

15th Sep 2024, 2:19 PM
ARYAN SINGH
ARYAN SINGH - avatar
2 Réponses
+ 2
don't forget to include the math header
15th Sep 2024, 4:22 PM
Mihaly Nyilas
Mihaly Nyilas - avatar