Advertisement
RamiroAlegre

Programa simple

Apr 25th, 2020
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int s;   //Declaro las variables
  5. char nombre[20]; //Uso un vector para guardar el nombre COMPLETO,
  6. cout <<"Ingrese su nombre: ";
  7. cin >> nombre; //Pido los datos
  8. cout << "Ingrese su sueldo: ";
  9. cin >> s;
  10.  
  11. if(s>3000){cout <<nombre<<" Debe pagar impuestos"<<endl;} //si el sueldo es mayor a 3000 muestro el mensaje
  12.  
  13.  
  14.  
  15.  
  16. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement