Advertisement
Guest User

Untitled

a guest
May 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // ConsoleApplication1.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "iostream"
  6. using namespace std;
  7.  
  8.  
  9. int testiculating(int x, int y) {
  10. return (x / y);
  11. }
  12.  
  13. void main() {
  14. cout << "Hello World" << endl;
  15. int x = 10 * 5;
  16. cout << "x" << endl;
  17. cout << x << endl;
  18. int y;
  19. cin >> y;
  20. int a = testiculating(x, y);
  21. cout << a;
  22. cin.ignore(32767, '\n');
  23. cin.ignore(32767, '\n');
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement