IB001 Úvod do programování - Seminární skupina 25 a 26

Pí - zdrojový kód

#include <stdio.h>
#include <math.h>

#define PI 3.14159265358979323846264338327950288419716939937510
int main(void)
{
    // 3, 22/7, 333/106, 355/113, 52163/16604, 103993/33102
    printf("%12s: %.10f \n","PI",PI);
    printf("%12s: %.10f \n","22/7",22/7.);
    printf("%12s: %.10f \n","333/106",333/106.);
    printf("%12s: %.10f \n","355/113",355/113.);
    printf("%12s: %.10f \n","52163/16604",52163/16604.);
    printf("%12s: %.10f \n","103993/33102",103993/33102.);
    printf("%12s: %.10f \n","atan(1)*4",atan(1)*4);
    return 0;
}