Search
 
SCRIPT & CODE EXAMPLE
 

C

Calculate the area of a circle and modify the same program to calculate the volume of a cylinder given its radius and height.

#include<stdio.h>
int main()
{
	
	float vol,r,h;
	printf("enter radius: ");
	scanf("%f",&r);
	printf("enter height: ");
	scanf("%f",&h);
   
	vol=(22*r*r*h)/7;
	printf("VOC: %f
",vol);
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: buildCheckFunction(locations) 
C :: levenshtein c 
C :: Manage Menu Driven Program using switch statement 
C :: #include <stdio.h int main() { int x = 10, *y, **z; y = &x; z = &y; printf(""%d %d %d"", *y, **z, *(*z)); return 0; } 
C :: how to turn off bash 
C :: attiny pinout 
C :: function of science writing of a number 
C :: snake spielen 
C :: snprintf with malloc 
C :: Word Processor, Spreadsheet and Presentation Software are the examples of 
C :: pthread_create 
C :: Typecast Operator in C language 
C :: matrix of string in c 
C :: mitch mcconnell 
C :: install zoom on ubuntu 
Dart :: flutter column center horizontal text 
Dart :: flutter keyboard overflow when opens 
Dart :: round container flutter 
Dart :: order list dart 
Dart :: dart ceil 
Dart :: dart switch 
Dart :: File dart get file extension 
Dart :: flutter lock orientation 
Dart :: no scroll physics flutter 
Dart :: dart try-catch 
Dart :: linearprogressindicator flutter 
Dart :: flutter bullet point 
Dart :: StateError (Bad state: No element) 
Dart :: int to string dart 
Dart :: dart and flutter 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =