Brain games: puzzles, riddles, and logical games.
Users rating Registration FAQ

Puzzles, riddles, logical games, mathematics

www.puzzlesriddles.com on Facebook
 

 
Login:
Password:
Remember?
Change password



1. pretorik - 161
2. markr - 116
3. Gordon Weir - 104
4. mbloomfi - 97
5. Dennis Nazarov - 96
6. zzz123 - 72
7. Srikanta - 56
8. lidSpelunker - 53
9. SAMIH FAHMY - 48
10. jkr - 44


1. denisR, mishik - 236
2. alan, De_Bill - 231
3. dddfff - 228
4. kavfy - 221
5. idler_ - 106
6. akajobe - 94
7. tolstyi - 56
8. STARuK - 42
9. vale - 31
10. xandr - 11



Twenty asterisks Puzzles for programmers  Weight: 0 Liked the puzzle: 100% 13.01.2010
A text of a C code is given below. Find three different ways to replace one symbol so that the resulting code would print 20 asterisks. A symbol has to be replaced, not added or deleted.
main() { int i, N=20; for (i = 0 ; i < N ; i--) { printf("*"); } }
Comments:   3 check your solution  

Please do not post comments containing clues, hints, or anything that might be considered as a hint to others. All such comments will be deleted. If you have a question, you can contact a moderator by clicking the button "Submit your solution".

idler_
 
Rating: 106
Group: Moderators
2011-01-28 19:42:31
Reserved.
lidSpelunker
 
Rating: 53
Group: Members
2011-02-15 20:00:18
What is meant by "a symbol"? Does it mean a single character?
alan
 
Rating: 231
Group: Moderators
2011-02-21 00:02:54
lidSpelunker 2011-02-15 20:00:18
What is meant by "a symbol"? Does it mean a single character?

Yes. You press "del", then input a new symbol. :)



 
Users online 0: administrator -  administrator  moderator -  moderator  VIP user -  VIP user  user -  user
en.braingames.ru © 2006-2010 All Rights Reserved