Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int n;
- int e;
- int main()
- {
- printf("Input N: ");
- scanf("%d", &n);
- printf("Input E: ");
- scanf("%d", &e);
- for (int i = 1; i < n+1; i ++){
- printf("%.0f ", pow(i,e));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment