Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i,podstawa, potega;
- int wynik=1;
- printf("Podaj podstawe: ");
- scanf("%d", &podstawa);
- printf("Podaj potege: ");
- scanf("%d", &potega);
- for(i=0;i<potega;i++)
- {
- wynik= wynik * podstawa;
- printf("%d\n", wynik);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement