dsr95

C++ Lab 3.1

Dec 17th, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // Lab 3.1 DSR.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6.  
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. int edad;
  13.  
  14. cout << "Por favor ingrese su edad." << endl;
  15. cin >> edad;
  16.  
  17. if (edad >= 65)
  18. cout << "Edad es mayor o igual que 65" << endl;
  19. else
  20. cout << "Edad es menor que 65" << endl;
  21.  
  22.  
  23. system("PAUSE");
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment