Advertisement
Skygen

19. darbs

May 6th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include <conio.h>
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. int SKAITLIS(int x){
  8. int result = 1;
  9. for(int i = 1; i<=x;i++)result *=x;
  10. return result;
  11. }
  12.  
  13. float SKAITLIS(float x){
  14.  
  15. }
  16.  
  17. int INC(int a){
  18. return a+1;
  19. }
  20.  
  21. char INC(char a){
  22. return a+1;
  23. }
  24.  
  25. bool XOR(int a, int b){
  26. if(a==b)return false;
  27. else return true;
  28. }
  29.  
  30. bool XOR(float a, float b){
  31. if(a==b)return false;
  32. else return true;
  33. }
  34.  
  35. bool XOR(char a, char b){
  36. if(a==b)return false;
  37. else return true;
  38. }
  39.  
  40. int PAKAPE(int A, int N){
  41. if(N==0) return 1;
  42. return A*PAKAPE(A,N-1);
  43.  
  44. }
  45.  
  46.  
  47.  
  48. main()
  49. {
  50. cout << PAKAPE(5,2);
  51. getch();
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement