LivioBrunner

Sternchenaufgabe - M403

Nov 18th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.96 KB | None | 0 0
  1. /*****************************************************************************
  2.  FILE : Template.c
  3.  
  4.  VERSION  DATE      PROGRAMMER  REMARKS
  5.    1.0    24.12.03  Muster H.   Template erstellt
  6.    1.1    6.7.2006  Master S.   Kommentare eingefügt
  7.  
  8.  USED BY
  9.     C-Kurs / Grundlagen
  10.  
  11.  BESCHREIBUNG
  12.     Dies ist eine Vorlagendatei für einfache C-Programme
  13.  
  14.  COPYRIGHT (C) 2006  by H.U.Steck  CH-6343 Rotkreuz
  15. *****************************************************************************/
  16. /* IMPORT ---------------------- */
  17. #include <stdio.h>
  18.  
  19. /* KONSTANTEN ------------------ */
  20.  
  21. /* VARIABLEN (global) ---------- */
  22.  
  23. /* HAUPTPROGRAMM --------------- */
  24. int main()
  25.  {
  26.   int Eingabe;
  27.   printf("Gib Anzahl Sterne an:");
  28.   scanf("%d", &Eingabe);
  29.   while(Eingabe>0){
  30.    printf("*");
  31.    Eingabe--;
  32.   }
  33.   puts(""); //Für Zeilenumbruch
  34.  
  35.   return 0;
  36.  } /* ------------------------------------------------------------------------*/
  37.  
  38. /* Bildschirmdialog
  39.  
  40. */
Advertisement
Add Comment
Please, Sign In to add comment