Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <stdafx.h>
  2. #include <iosteam>
  3.  
  4. void printvalues(int x)
  5. {
  6.     std::cout << x << std::endl;
  7. }
  8.  
  9. void printvalues2(int y)
  10. {
  11.     std::cout << y << std::endl;
  12. }
  13.  
  14. void addition(int x, int y)
  15. {
  16.     std::cout << x << " + " << y << " = " << x + y << std::endl;
  17. }
  18.  
  19. int main()
  20. {
  21.     printvalues(6);
  22.     printvalues2(7);
  23.     std::cout << addition << std::endl;
  24.    
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement