CB100

Notas, resueltos y tps de la materia Algoritmos y Estructuras de Datos
Index Commits Files Refs README
guias/1/ej09.cpp (408B)
   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 ? " NO es DIVISIBLE por " : " es DIVISIBLE por ")
  15         << b << std::endl;
  16 
  17     return 0;
  18 }