How to display palindromes in a given randomized letters
Closed
gealon2024
Posts
7
Registration date
Thursday October 3, 2013
Status
Member
Last seen
April 30, 2014
-
Oct 11, 2013 at 08:41 AM
BunoCS Posts 15356 Registration date Monday July 11, 2005 Status Moderator Last seen March 13, 2023 - Oct 12, 2013 at 07:14 AM
BunoCS Posts 15356 Registration date Monday July 11, 2005 Status Moderator Last seen March 13, 2023 - Oct 12, 2013 at 07:14 AM
Related:
- How to display palindromes in a given randomized letters
- Keyboard not typing letters - Guide
- 3 beeps on startup no display ✓ - CPU & Desktop Forum
- 5 beeps on startup no display ✓ - CPU & Desktop Forum
- No display on monitor but cpu running ✓ - Hardware Forum
- How to type capital letters in keypad phone ✓ - Nokia Forum
2 replies
BunoCS
Posts
15356
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
March 13, 2023
1,536
Oct 12, 2013 at 07:05 AM
Oct 12, 2013 at 07:05 AM
Hello,
We already help you to discover palindromes and to count them.
What is the problem, now?
Note: I've edited your message to fix code tags.
We already help you to discover palindromes and to count them.
What is the problem, now?
Note: I've edited your message to fix code tags.
BunoCS
Posts
15356
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
March 13, 2023
1,536
Oct 12, 2013 at 07:14 AM
Oct 12, 2013 at 07:14 AM
I don't understand why you are doing 7 times the same for loop...
Moreover,
- y[i]: i goes from 0 to 200. But, y is an array of 50 int -> it crashes
What do you want to do?
@+
Buno, Modo CS-CCM
The urgent is done, the impossible is underway. For miracles, envisage a time ...
Moreover,
- you're using the same i in outer and inner loop -> dangerous.
for(i=0; i<200; i++){
srand(time(NULL));
for(i=0;i<=200;i++){
x =rand()%26+97;
y[i] = x%26+97;
printf("%2c", x);
i++;
}
}
- y[i]: i goes from 0 to 200. But, y is an array of 50 int -> it crashes
What do you want to do?
@+
Buno, Modo CS-CCM
The urgent is done, the impossible is underway. For miracles, envisage a time ...