Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <math.h>
- int main()
- {
- int ganzzahl;
- double i=1.0;
- char weiter='j';
- double amk=1.0;
- printf("GEBEN SIE EINE GANZZAHL AN AMK\n");
- scanf("%i", &ganzzahl);
- while(weiter!='n')
- {
- while((i+amk)*1.0*(i+amk)*1.0<=ganzzahl)
- {
- i+=amk;
- i*=1.0;
- }
- amk/=10;
- printf("Ergebnis:\t %lf\nWeiter?\n", i);
- scanf("%c", &weiter);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement