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
CO Assignment 1 Question 1
WHY_?
Loop-worksharing
int_A_1a.c
TopRightTriangle.c
14th Dec Project1 v0.4
sample.c
Check EOF Value
PuntosTriangulo
fork() System call