Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
ques4
A_141205_ContadorPalabras
Lab 9 v1
C(gcc) Local Time and math.h Example
C_141106_Divisores
blue saver go my marshal green
3-D array sum and search
printf
Multiple If statements v1
B_141118_Euclides
Please log in to post a comment.