Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void parallelogram()
- {
- int side, i, j, k, temp;
- printf("podaj długość boku rownolegloboku: \n");
- scanf("%d", &side);
- printf("podana dlugosc boku: %d \n", side);
- for(i=0; i<side; i++)
- {
- for(j=0; j<(side-i); j++)
- {
- printf(" ");
- }
- for(k=0; k<(side); k++)
- {
- printf("%c", 97+k);
- }
- printf("\n");
- }
- }
- int main()
- {
- parallelogram();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement