Facebook
From dsafsdwef, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 181
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.         int n;
  7.         int y;
  8.         int x;
  9.         printf("podaj wartosc n: ");
  10.         scanf("%d", &n);
  11.         if (n=5)
  12.         {
  13.             for (y=0; y<n; y++)
  14.             {
  15.                 for(x = 0; x< n; x++)
  16.                 {
  17.                     printf("*");
  18.                 }
  19.                 printf("n");
  20.             }
  21.         }
  22.         else
  23.         {
  24.             printf("Error");
  25.         }
  26.         return 0;
  27. }
  28.