orlandoju

Ejer6_tp2

Mar 31st, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main(void){
  6.  
  7. int num1,num2,num3;
  8.  
  9. cout<< "Ingrese el primer numero: " ;
  10. cin>> num1;
  11. cout<< "Ingrese el segundo numero: " ;
  12. cin>> num2;
  13. cout<< "Ingrese el tercer numero: " ;
  14. cin>> num3;
  15.  
  16. if (num1==num2 && num2==num3){
  17. cout<< "Los tres numero ingresados son iguales";
  18. }
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment