Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5.     int Zahl = 1, Zaehler;
  6.  
  7.     printf("Zahl n eingeben: ");
  8.     scanf("%d", &Zahl);
  9.  
  10.     if(Zahl >= 15){
  11.         printf("Falsche Eingabe");
  12.     }
  13.     while(Zaehler <=8){
  14.         Zahl = Zahl * 2;
  15.                 printf("%d\n", Zahl);
  16.  
  17.       }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement