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
Project 3 part 2 Book v1.1
Hello
bitmask2
PREGUNTA 3 FICHERO
A_141212_IntercambiarValores
summing long int
base
C_141127_MatricesSUMA
Text to ASCII (top)
150108_RecursividadFibonacci