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 15495 Registration date Monday July 11, 2005 Status Moderator Last seen October 23, 2024 - Oct 12, 2013 at 07:14 AM
BunoCS Posts 15495 Registration date Monday July 11, 2005 Status Moderator Last seen October 23, 2024 - Oct 12, 2013 at 07:14 AM
Related:
- How to display palindromes in a given randomized letters
- Keyboard won't type letters - Guide
- Download mp3 with lyrics display - Download - Audio playback
- To display a text file in reverse order what command should be used - Guide
- Huawei display check code - Guide
- Why is my keyboard not typing letters but opening shortcuts - Guide
2 responses
BunoCS
Posts
15495
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
October 23, 2024
1,534
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
15495
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
October 23, 2024
1,534
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 ...