daily pastebin goal
41%
SHARE
TWEET

Bitcoiniator

Fotografiona Aug 5th, 2012 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. main ()
  3. {
  4.         int wahl;
  5.         float betrag;
  6.         printf("\n\tB I T C O I N I A T O R\n");
  7.         printf("\n1 BTC --> Euro\n2 Euro --> BTC");
  8.         printf("\n\nIhre Wahl: ");
  9.         scanf("%i", &wahl);
  10.         if (wahl == 1)
  11.         {
  12.                 printf("Bitte BTC-Betrag eingeben: ");    
  13.                 scanf("%f", &betrag);
  14.                 printf("\n%.2f BTC sind %.2f EURO\n", betrag, betrag*8.69);
  15.         }
  16.         else if (wahl == 2)
  17.         {
  18.                 printf("Bitte EURO-Betrag eingeben: ");
  19.                 scanf("%f", &betrag);
  20.                 printf("\n%.2f EURO sind %.2f BTC\n", betrag, betrag*0.12);
  21.         }
  22.        else
  23.                 printf("\nUngueltige Option, man!\n");        
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top