Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int main(void) {
  2. const double pi = 3.1415926535979;
  3. double r = 0.0;
  4. printf("radius eingeben: ");
  5. int check = scanf("%lf", &r);
  6. if( check !=1 ) {
  7. printf("Fehler beim einlesen ...\n");
  8. return 1;
  9. }
  10. double aKreis = r * r * pi;
  11. printf("kreisflaeche betreagt: %lf\n", aKreis);
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement