Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int i;
- int x;
- cout << "Ingrese un valor: ";
- cin >> i;
- cout << "Ingrese otro valor mayor que el primero: ";
- cin >> x;
- while(i < x){
- cout << i << endl;
- if(i < 10){
- i++;
- }
- else if(i < 20 && i >= 10){
- i +=2;
- }
- else if(i < 30 && i >= 20 ){
- i +=3;
- }
- else{
- i++;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment