Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
March 28, 2024
Write a c program to calculate total area of Cylinder and volume of a cylinder.
Online C Compiler IDE
Editor
#include
#include
int main() { float r,h,A,V; printf("enter the value of r"); scanf("%f",&r); printf("enter the value of h"); scanf("%f",&h); A=3.14*r*(r+h); V=3.14*r*h; printf("The area of cylinder is %f\n volume is %f ",A,V); return 0; }
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C