mirror of
https://github.com/GnoConsortium/gno.git
synced 2025-01-01 02:30:13 +00:00
13 lines
246 B
C
13 lines
246 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
double pi = 3.141596;
|
|
|
|
printf("(f) pi is %f\n", pi);
|
|
printf("(e) pi is %e\n", pi);
|
|
printf("(g) pi is %g\n", pi);
|
|
printf("(.2g) pi is %.2g\n", pi);
|
|
printf("(.2g) pi is %.2g\n", pi / 1024. );
|
|
return 0;
|
|
}
|