long-double tag

1 questions


1 answers
142 views
0
Is there a way to calculate between long double types in C language?

#include <stdio.h>#include <math.h>int main(void){ double x,y; printf(Please enter x and y : ); scanf(%lf %lf, &x, &y); long double z = ((x + sqrt(x*x+y*y))/2.0); printf(The value ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.