Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int s; //Declaro las variables
- char nombre[20]; //Uso un vector para guardar el nombre COMPLETO,
- cout <<"Ingrese su nombre: ";
- cin >> nombre; //Pido los datos
- cout << "Ingrese su sueldo: ";
- cin >> s;
- if(s>3000){cout <<nombre<<" Debe pagar impuestos"<<endl;} //si el sueldo es mayor a 3000 muestro el mensaje
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement