fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main(){
  6. //int x,y;
  7. double a,b;
  8. double wynik;
  9. int wynik2;
  10. printf("podaj podstawe potegi: ");
  11. scanf("%lf", &a);
  12. printf("\npodaj wykladnik potegi: ");
  13. scanf("%lf", &b);
  14. wynik=pow(a,b);
  15. //wynik=a/b*(3.0/4.0);
  16. printf("\n%lf",wynik);
  17. system("pause");
  18. return 0;
  19. }
Success #stdin #stdout #stderr 0s 2116KB
stdin
2
3
stdout
podaj podstawe potegi: 
podaj wykladnik potegi: 
8.000000
stderr
sh: 1: pause: not found