Run Code
|
API
|
Code Wall
|
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
2.1.1 Prime numbers in different threads with thread ID
Is const really const? Yes
LinkedListTest
Atoi without minus
BigInteger maxMinSum
Welcome1
Bitfield and Union in C - strange results
888 BONUS LAB 1
Multiple If statements v1
String copy