Advertisement
Skygen

14.darbs

Apr 7th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. using namespace std;
  4.  
  5. void VARDS()
  6. {
  7. system("CLS");
  8. cout << "######################\n";
  9. cout << "##Rihards Novozilovs##\n";
  10. cout << "######################";}
  11.  
  12. float VID(int a, int b, int c){
  13. return (a+b+c)/3;}
  14.  
  15. void IZVADS(string R, string K)
  16. {
  17. }
  18.  
  19. int PAKAPE (int x, int y)
  20. { for(int i= 1;i<y;i++)x*=x;
  21. return x;}
  22.  
  23. int MaxNumber(int a)
  24. {
  25. int b = a, cnt = 0, max;
  26. while(b){b/=10; cnt++;}
  27. max = a%10;
  28. for (int i = 0;i<cnt;i++)
  29. {
  30. if (max<(a/10)%10) max = (a/10)%10;}
  31. return max;}
  32.  
  33. void BACKWARD(int N)
  34. {while(N>=1){
  35. cout << N%10;
  36. N = N/10;}}
  37.  
  38. main()
  39. {
  40.  
  41. getch();
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement