How to display palindromes in a given randomized letters
Closed
gealon2024
Posts
7
Registration date
Thursday 3 October 2013
Status
Member
Last seen
30 April 2014
-
11 Oct 2013 à 08:41
BunoCS Posts 15922 Registration date Monday 11 July 2005 Status Moderator Last seen 10 July 2026 - 12 Oct 2013 à 07:14
BunoCS Posts 15922 Registration date Monday 11 July 2005 Status Moderator Last seen 10 July 2026 - 12 Oct 2013 à 07:14
Related:
- How to display palindromes in a given randomized letters
- Letters on keyboard not working - Guide
- Keyboard doesn't type letters just shortcuts - Guide
- Computer turns on but no display - Guide
- Laptop display upside down - Guide
- How to underscore a letter on android phone - Guide
2 responses
BunoCS
Posts
15922
Registration date
Monday 11 July 2005
Status
Moderator
Last seen
10 July 2026
1,534
12 Oct 2013 à 07:05
12 Oct 2013 à 07:05
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
15922
Registration date
Monday 11 July 2005
Status
Moderator
Last seen
10 July 2026
1,534
12 Oct 2013 à 07:14
12 Oct 2013 à 07:14
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 ...