SHARE
TWEET

Untitled

a guest Apr 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. /*
  3. Nazwa Krystian_Kislowski_INF03_5
  4. Autor Krystian Kislowski
  5. Album 105478
  6. KOD ES1D200009
  7. Forma Pracownia Specjalistyczna
  8. Wykonano w Code;;Blocks 16.01
  9. */
  10. int main()
  11. {
  12.     int x, i, j;
  13.  
  14.     printf("Podaj liczbe z zakresu od 1 do 15: "); scanf("%d", &x);
  15.  
  16.     if (x<1 || x>15)
  17.         printf("Podana liczba jest spoza zakresu\n");
  18.     else
  19.  
  20.         for (i = 1; i <= x; i++)
  21.         {
  22.          for (j=0; j<i; j++)
  23.           {
  24.             printf("@");
  25.           }
  26.           printf("\n");
  27.         }
  28.  
  29.     return 0;
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top