Advertisement
DominikPasiut

Untitled

Oct 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int i,podstawa, potega;
  6.     int wynik=1;
  7.  
  8.     printf("Podaj podstawe: ");
  9.     scanf("%d", &podstawa);
  10.     printf("Podaj potege: ");
  11.     scanf("%d", &potega);
  12.  
  13.    for(i=0;i<potega;i++)
  14.    {
  15.     wynik= wynik * podstawa;
  16.     printf("%d\n", wynik);
  17.    }
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement