RenzCutie

Exponential

Sep 15th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int n;
  4. int e;
  5.  
  6.  
  7. int main()
  8. {
  9.  
  10. printf("Input N: ");
  11. scanf("%d", &n);
  12.  
  13. printf("Input E: ");
  14. scanf("%d", &e);
  15.  
  16. for (int i = 1; i < n+1; i ++){
  17. printf("%.0f ", pow(i,e));
  18. }
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment