Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- #include <math.h>
- using namespace std;
- int SKAITLIS(int x){
- int result = 1;
- for(int i = 1; i<=x;i++)result *=x;
- return result;
- }
- float SKAITLIS(float x){
- }
- int INC(int a){
- return a+1;
- }
- char INC(char a){
- return a+1;
- }
- bool XOR(int a, int b){
- if(a==b)return false;
- else return true;
- }
- bool XOR(float a, float b){
- if(a==b)return false;
- else return true;
- }
- bool XOR(char a, char b){
- if(a==b)return false;
- else return true;
- }
- int PAKAPE(int A, int N){
- if(N==0) return 1;
- return A*PAKAPE(A,N-1);
- }
- main()
- {
- cout << PAKAPE(5,2);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement