Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void parallelogram()
  5. {
  6.   int side, i, j, k, temp;
  7.   printf("podaj długość boku rownolegloboku: \n");
  8.   scanf("%d", &side);
  9.   printf("podana dlugosc boku: %d \n", side);
  10.  
  11.   for(i=0; i<side; i++)
  12.   {
  13.     for(j=0; j<(side-i); j++)
  14.     {
  15.       printf(" ");
  16.     }
  17.     for(k=0; k<(side); k++)
  18.     {
  19.       printf("%c", 97+k);
  20.     }
  21.     printf("\n");
  22.   }
  23.  
  24.  
  25. }
  26.  
  27.  
  28. int main()
  29. {
  30. parallelogram();
  31.  
  32.  
  33.  
  34.  
  35.   return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement