- 4

Its a iteration problem

Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 1 Enter First Letter: h Enter Last Letter: m h i j k l m Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 1 Enter First Letter: m Enter Last Letter: h m n o p q r s t u v w x y z a b c d e f g h Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 1 Enter First Letter: * Enter First Letter: 6 Enter First Letter: u Enter Last Letter: r u v w x y z a b c d e f g h i j k l m n o p q r Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 2 Enter First Number: 55 Enter Last Number: 99 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 2 Enter First Number: 78 Enter Last Number: 34 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 2 Enter First Number: 200 Enter First Number: 205 Enter First Number: -3 Enter First Number: 33 Enter Last Number: 55 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 Simple Display 1)Letter(lowercase only) 2)Numbers(1-100) 3)Exit Choose: 3 Program Terminated!!!

23rd Oct 2019, 12:50 PM
Assasin J
Assasin J - avatar
11 Answers
+ 4
Then show your attempt and tell your problem.
23rd Oct 2019, 12:56 PM
A͢J
A͢J - avatar
+ 1
Please try to do by yourself first. We can help to solve your problem but can't write full code.
23rd Oct 2019, 12:53 PM
A͢J
A͢J - avatar
+ 1
It's hard to tell anything without seeing the code, but to exit the loop you could use break statement or for program termination you could use return statement or the exit() function.
23rd Oct 2019, 1:17 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
In your iretation code, variable m is uninitialized and you are using it in condition of while loop. And your code will terminate on entering '3' not '2'.
23rd Oct 2019, 2:54 PM
blACk sh4d0w
blACk sh4d0w - avatar
0
a yeah i tried already hahaha
23rd Oct 2019, 12:54 PM
Assasin J
Assasin J - avatar
0
my problem is i cant show the last litter
23rd Oct 2019, 12:57 PM
Assasin J
Assasin J - avatar
0
i cant insert my code im sorry
23rd Oct 2019, 12:58 PM
Assasin J
Assasin J - avatar
23rd Oct 2019, 1:36 PM
Assasin J
Assasin J - avatar
0
https://code.sololearn.com/c2nAp1Og0luo/?ref=app
23rd Oct 2019, 1:40 PM
Assasin J
Assasin J - avatar
0
this is my shape one that i did in other day
23rd Oct 2019, 1:40 PM
Assasin J
Assasin J - avatar
0
so i should use do before i use while
23rd Oct 2019, 3:03 PM
Assasin J
Assasin J - avatar