For loops mania
Name: Aditya semwal
Date: jan 19, 2023
Student #2210568
The purpose of this assignment is to display numbers based on the users input between certain numbers
Date: jan 19, 2023
Student #2210568
The purpose of this assignment is to display numbers based on the users input between certain numbers
See my program here: https://replit.com/@adityasemwal15/AdityaForLoops-Mania?v=1
adityaforloops-mania.zip |
Enter your first value between (-500 to 500)
-1111
Invalid input
Enter your first value between (-500 to 500)
99999
Invalid input
Enter your first value between (-500 to 500)
170
Enter your second value between (-500 to 500) and first number cannot be the same
170
Invalid input
Enter your second value between (-500 to 500) and first number cannot be the same
111
what number do you want to do up/down by?
3
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
o
Invaid input please try again
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
e
Invaid input please try again
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
y
170 167 164 161 158 155 152 149 146 143 140 137 134 131 128 125 122 119 116 113 170 167 164 161 158 155 152 149 146 143 140 137 134 131 128 125 122 119 116 113
Do you want to repeat the program (Y/y = yes or N/n = no)
o
Invaid input please try again
Do you want to repeat the program (Y/y = yes or N/n = no)
p
Invaid input please try again
Do you want to repeat the program (Y/y = yes or N/n = no)
y
Enter your first value between (-500 to 500)
334
Enter your second value between (-500 to 500) and first number cannot be the same
223
what number do you want to do up/down by?
5
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
n
334 329 324 319 314 309 304 299 294 289 284 279 274 269 264 259 254 249 244 239 234 229 224 334 329 324 319 314 309 304 299 294 289 284 279 274 269 264 259 254 249 244 239 234 229 224
Do you want to repeat the program (Y/y = yes or N/n = no)
n
Thank you for visiting
-1111
Invalid input
Enter your first value between (-500 to 500)
99999
Invalid input
Enter your first value between (-500 to 500)
170
Enter your second value between (-500 to 500) and first number cannot be the same
170
Invalid input
Enter your second value between (-500 to 500) and first number cannot be the same
111
what number do you want to do up/down by?
3
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
o
Invaid input please try again
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
e
Invaid input please try again
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
y
170 167 164 161 158 155 152 149 146 143 140 137 134 131 128 125 122 119 116 113 170 167 164 161 158 155 152 149 146 143 140 137 134 131 128 125 122 119 116 113
Do you want to repeat the program (Y/y = yes or N/n = no)
o
Invaid input please try again
Do you want to repeat the program (Y/y = yes or N/n = no)
p
Invaid input please try again
Do you want to repeat the program (Y/y = yes or N/n = no)
y
Enter your first value between (-500 to 500)
334
Enter your second value between (-500 to 500) and first number cannot be the same
223
what number do you want to do up/down by?
5
Do you want the number to be inclusive or non-inclusive ( Y = yes || N = no )
n
334 329 324 319 314 309 304 299 294 289 284 279 274 269 264 259 254 249 244 239 234 229 224 334 329 324 319 314 309 304 299 294 289 284 279 274 269 264 259 254 249 244 239 234 229 224
Do you want to repeat the program (Y/y = yes or N/n = no)
n
Thank you for visiting