CB100

Notas, resueltos y tps de la materia Algoritmos y Estructuras de Datos
Index Commits Files Refs README
guias/1/ej07.cpp (373B)
   1 #include <iostream>
   2 
   3 int main (void) {
   4     long a, b;
   5 
   6     std::cout << "Ingrese un número> " << std::flush;
   7     std::cin >> a;
   8     std::cout << "\033[1A\033[0KIngrese otro número> " << std::flush;
   9     std::cin >> b;
  10 
  11     std::cout << "\033[1A\033[0KUsted ingreso `" << a << "` y `" 
  12         << b << "`" << std::endl;
  13 
  14     std::cout << a << (a > b ? " > " : " < ") << b << std::endl;
  15 
  16     return 0;
  17 }