SHARE
TWEET

Untitled

a guest Jan 28th, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int liczba;
  6.     int i;
  7.     printf("Podaj liczbe calkowita dodatnia: ");
  8.     scanf("%i", &liczba);
  9.     if(liczba <= 0)
  10.     {
  11.         printf("Podana liczba nie jest dodatnia");
  12.         return 0;
  13.     }
  14.     for(i=1; i<=liczba; i++)
  15.     {
  16.         if(liczba % i == 0)
  17.             printf("\nDzielnik liczby %i - %i", liczba, i);
  18.     }
  19. }
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