Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int x; //zeilen
- int z; //zeichen in zeile
- int i;
- char y; //zeichen
- printf("Bitte geben Sie das gewünschte Zeichen ein:\n");
- scanf("%c", &y);
- printf("Bitte waehlen Sie die Anzahl der Zeilen:\n");
- scanf("%d", &x);
- return 0;
- }
- int f1 (void)
- {
- printf("Funktion 1\n\n");
- for (i=1;i<=x;i++)
- {
- for (z=15;z>i;z--)
- {
- printf("%c", ' ');
- }
- for (y=1;y<=i;y++)
- {
- printf("%c", y);
- }
- }
- }
Add Comment
Please, Sign In to add comment