Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- void VARDS()
- {
- system("CLS");
- cout << "######################\n";
- cout << "##Rihards Novozilovs##\n";
- cout << "######################";}
- float VID(int a, int b, int c){
- return (a+b+c)/3;}
- void IZVADS(string R, string K)
- {
- }
- int PAKAPE (int x, int y)
- { for(int i= 1;i<y;i++)x*=x;
- return x;}
- int MaxNumber(int a)
- {
- int b = a, cnt = 0, max;
- while(b){b/=10; cnt++;}
- max = a%10;
- for (int i = 0;i<cnt;i++)
- {
- if (max<(a/10)%10) max = (a/10)%10;}
- return max;}
- void BACKWARD(int N)
- {while(N>=1){
- cout << N%10;
- N = N/10;}}
- main()
- {
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement