Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Calculating longs p v1
#include <stdio.h> #include <math.h> int main(void) { long long L; int S; double a; double b; double c; double d; double e; double f; scanf("%lld%d",&L,&S); // scanf("lld",&L); // scanf("%d",&S); //L=1000; //S=4; a=S+L; b=S*L; c=L-S; d= sqrt(L); e= sqrt(S); f=L/S; printf("L=%lld\nS=%d\n",L,S); printf("a=S+L=%lf\n",a); printf("b=S*L=%lf\n",b); printf("c=L-S=%lf\n",c); printf("d=(L)^1/2=%lf\n",d); printf("e=(S)^1/2=%lf\n",e); printf("f=L/S=%lf\n",f); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
B_141202_funcionesString
Instruction order in C/C++
2-D array
Sunday assignment v2
signaling NaN test
pointer**
back
Intro coding hello world
Strncpy memcpy
bitwise_operation__end-of-class
Please log in to post a comment.