zad3: c:llu→Lf, comment

This commit is contained in:
Michał Krzysztof Feiler 2019-01-24 19:42:51 +01:00
parent 7c5b7d8aa9
commit 12b4edccca
No known key found for this signature in database
GPG Key ID: E35C2D7C2C6AC724
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,15 @@
/* Zad 3 z zestawu 2. Ćwiczenia z ASD.
* Oblicza pierwiastek kwadratowy z x za pomocą algorytmu Herona,
* wypisując na wyjściu kolejne wyrazy ciągu w kolejnych iteracjach
* Przyjmuje na wejściu liczbę x oraz docelową dokładność
* 24 sty 2019
* Michał Krzysztof Feiler (s444368) <archiet@wmi.amu.edu.pl>
* */
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
static long long unsigned c; static long double c;
static long double eps; static long double eps;
static long double x; static long double x;
@ -22,7 +30,7 @@ void print()
int main() int main()
{ {
scanf("%llu %Lf", &c, &eps); scanf("%Lf %Lf", &c, &eps);
x = c; x = c;
n = 0; n = 0;
print(); print();