Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Volume of a square pyramid With functions
//gcc 5.4.0 #include <stdio.h> double asquare(int b){ double asq; asq=b*b; return(asq); } int main(void) { double v; double b=2; //double b2=2; double h=4; double h3=h/3; double a2=asquare(b); //a2=asquare(b); v=a2*h3; printf("b1=%lf\na2=%lf\nh=%lf\nasquare=%lf\nh=%lf\nv=%lf\n",b,a2,h,asquare(b),h,v); }
run
|
edit
|
history
|
help
0
Refcount220323
Is const really const?
EUCLIDES BIEN
B_141121_fibonacci
cstructCricket
A_141211_mayor
Serie de Fibonacci
2017_1117_TARTAGLIA
Assignment 4
Quadratic Formula