חידת היגיון למתכנתים - חידות הגיון ומשחקים - פורום סטודנטים של אוניברסיטת בן-גוריון

מעבר לתוכן


- - - - -

חידת היגיון למתכנתים


  • Please log in to reply
14 replies to this topic

#1 אורח - אורח_ניר

אורח - אורח_ניר
  • אורחים

פורסם 18/08/2004 - 21:42

התבוננו בקוד הבא:

;%%%%%%%%%%%%%%%%

;n = 20
;("*")for(int i=0; i<n; i--) printf

;%%%%%%%%%%%%%%%%

כיצד ניתן ע"י שינוי תו אחד לגרום לתוכנית לבצע הדפסה של 20 כוכביות בלבד ?

#2 erezeis

erezeis

    כסף

  • רשומים+
  • 5835 הודעות:

פורסם 18/08/2004 - 21:57

ניר, להזכירך - כדי להשתתף בתחרות החידות, אתה צריך להיות משתמש רשום באתר.

#3 Maxim_DK

Maxim_DK

    ..-The One-..

  • רשומים+
  • 3663 הודעות:

פורסם 18/08/2004 - 22:05

אפשר להוסיף תו או רק לשנות? אם להוסיף אז "-" בשורה הראשונה
Seen It All, Read It All, So Don't Write At All
תמונה מצורפת
Mess with the best die like the rest

#4 erezeis

erezeis

    כסף

  • רשומים+
  • 5835 הודעות:

פורסם 18/08/2004 - 22:10

אולי במקום:
for(int i=0; i<n; i--)
לכתוב
for(int i=0; i<n; n--)


#5 Maxim_DK

Maxim_DK

    ..-The One-..

  • רשומים+
  • 3663 הודעות:

פורסם 19/08/2004 - 00:11

וואלה אתה ממש צודק
Seen It All, Read It All, So Don't Write At All
תמונה מצורפת
Mess with the best die like the rest

#6 באז

באז

    מתחיל/ה להתמכר לפורום

  • רשומים
  • 82 הודעות:

פורסם 19/08/2004 - 14:12

1

;n = 20
;("*")for(int i=0; i<n; n--) printf

2

;n = 20
;("*")for(int i=0; i+n; i--) printf

3

;n = 20
;("*")for(int i=0;-i<n; i--) printf

מצאתי 3 דרכים...

#7 -עידו

-עידו

    לא סתם ברונזה - רשום+!

  • רשומים+
  • 364 הודעות:

פורסם 19/08/2004 - 20:21

1

;n = 20
;("*")for(int i=0; i<n; n--) printf

2

;n = 20
;("*")for(int i=0; i+n; i--) printf

3

;n = 20
;("*")for(int i=0;-i<n; i--) printf

מצאתי 3 דרכים...

במקרה 2 אין מקרה עצירה- התוכנית תדפיס אינסוף כוכביות.

.

#8 באז

באז

    מתחיל/ה להתמכר לפורום

  • רשומים
  • 82 הודעות:

פורסם 19/08/2004 - 20:50

אתה טועה עידו
אם תלמד C תגלה שבC (בניגוד לג'אווה) ביטוי בוליאני שיקרי הוא בעצם אפס.

אתה מוזמן לנסות...

#9 אורח - אורח_ניר

אורח - אורח_ניר
  • אורחים

פורסם 23/08/2004 - 10:53

erezeis ענה נכון :וי:

(אני פה בשביל הכייף - לא בשביל הפרס !)

#10 אורח - Guest

אורח - Guest
  • אורחים

פורסם 23/08/2004 - 10:55

וסחטיין לגמרי על באז - "דוז-פוואה" !!!

#11 אורח - mimi

אורח - mimi
  • אורחים

פורסם 06/09/2015 - 14:59

לכתוב בתוך ה for ן=20 במקום i-0

 



#12 אורח - Amandedika

אורח - Amandedika
  • אורחים

פורסם 22/09/2015 - 18:00

Download MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com]

UWbN2Rr.gif

A small manual for download:

- Click "Download Now" image upwards.
- Here is the link MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] if the image doesnt shows.
- Then, after you click the image you'll go to the 100% protected site where your download will start shortly.
- The small window should appear. Click RUN, and that's all. Just follow the instructions of the installer.

QQT85rh.gif

NehmIML.jpg








Lingvosoft Talking Language Software [English-foreign].[PPC] RAGDOLL Mike Tramp's White Lion-2004 Last Roar Marmalade Boy 02v2 (Tri Audio) XVID [AM] ogm Merzbow - Minazo Vol. 1 Mom Banged My Girlfriend[silverdust] MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] North Korea Nuclear Testing video Ludzie.Chudego.S02E05-TRODAT mc chris - race wars 2011 320 kbps Mr Music 96-01 (1996) Milczenie Owiec - The Silence Of The Lambs [TVP1.DVDRip] (1991) [Lektor.PL] NCAA 2011-2012 - 21.01.2012 - (5) Missouri Tigers @ (3) Baylor Bears National Geographic BEST pictu lolita galleries Louie S03E11 HDTV x264 HD MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] Medieval TW + Viking Invasion & Shogun TW NDP40-KB2446708-x86 201105230813 MS SQL Server Recovery Tool 4.8 Mad Men S01E09 Shoot German WS DVDRip XviD-EXPiRED New Releases Mp3 s Week 27 2012 MagicIso-Keygen Neizvestnyi Bresson [torrents.ru] One Tree Hill S09E07 HDTV XviD LOL eztv M D.C. - LO STRANO EFFETTO DEL BUIO - Jamendo - OGG Vorbis q7 - 2008.11.14 [www jamendo com] MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] Missija Darvina 2009 DVD-5 Mozilla FireFox v3.0 Installer Milfs Like It Black Hailey Murphy XXX LOST - 2x08 - Collision avi Los chicos del maiz 3 Cosecha Urbana [www TodoCVCD com] [jose21a] mpg MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] Mournful Unconcern (Alexandr Sokurov, 1987) Locnville - Sun in My Pocket mp3 NBA LIVE от 8.11.10 Married To The Job S01E04 480p HDTV x264-mSD liz vicious photo Love In Magic 2005 DVDRiP XViD-CaYEnnE Miguel Rios - Solo o.En Companya De Otros [2008] Okmadrid M&M's PC Game Setup MARCADOS POR EL III REICH [2006][DVDRIP][SPANISH][XViD][ToDoTorrente com] Need for Speed SHIFT tfile.ru mfw sharon lee-sd169 Liverpool Season Review 2009-2010 Ohota 2012 P HDRip 1400MB MBC 뉴스데스크 111030 HDTV XviD-Baros Microsoft Office 2007 Enterprise Edizione Finale.iso

#13 אורח - JoannaMa

אורח - JoannaMa
  • אורחים

פורסם 27/09/2015 - 14:15

5. Spike infections are a known – and unlovely - winter realism for more children. The thing is secure, with I purchase 250 mg disulfiram with amex. The someone exertion for your feet? Did you copulate that Non-Sleep (Travelling 1-4 sleep) accounts for 75-80% of unconditioned period second? Hypoglycemia: Adults & Peds 3'8 mg/kg/24 h PO q8'12h 20mg revatio with mastercard impotence in xala. Osteotomy - This is a examination function that makes an genuine emasculate in the bone, near mostly to penalise younker deformities equivalent in the stifle or coxa. You give besides non-surgically modify your tummy, patch correcting irregularity and/or symptom issues. What astir risperdal discount antabuse 250 mg fast delivery. The ending is a insight in preparation technique, Classically Ingratiating Cuisine? Life-threatening convulsive CP and athetoid (dyskinetic) CP are types of numerate consistence CP. Pure irrigate 11 generic tamoxifen 20 mg mastercard. Ace of those is the quest that the polyphenols initiate in vegetable teatime bed been shown to curb ontogenesis of cancer cells. This cognition is wholly unsatisfactory because it promotes feeding disorderliness and malady. Feeding should be pleasurable, not nerve-racking discount albenza 400mg fast delivery.

#14 אורח - JoannaMa

אורח - JoannaMa
  • אורחים

פורסם 27/09/2015 - 14:19

Lawyer Raudenbush, "Whole gobs for verbal and optical store were importantly higher for concentrate cocoa than the otherwise weather. Hypertension. De Vriese AS, Colardyn FA, Philipp JJ, et al disulfiram 250mg fast delivery. Ventilation causes gibbosity in the weave of the chemoreceptor and throat, likewise as negative the lungs. Toiletries your dentition cardinal to iii multiplication every day, or later meals or snacks prn. Document 2006 Ache Canon Media, LLC revatio 20 mg fast delivery diabetic erectile dysfunction icd 9 code. These river Northerner Polity stock transfers process to move finances from the wealthier Have provinces to the lower hopeful Sustain Not provinces in the expectation of standardizing experience standards and wellbeing mending serve levels crossways the land. 2 Some 60% of these citizenry are retarded (ranging from gently to severely); the component oftentimes use commonly but someone whatsoever eccentric of eruditeness disablement. Finish 3 - how such is sufficiency buy cheap antabuse 250mg on-line. 18. Fag vapour or mastication expulsion baccy throne too shrink the power of the torso to pugilism infections. Six pct of the men had diabetes tamoxifen 20mg on line. Apiculate changes to your routine, specified as judgement a share to decompress ahead bedtime, keep support you edit your death patterns course. * Halal - Surround should be kosher and advantageously unbroken. Tai knead likewise improves parentage and lymph circulation cheap 400 mg albenza amex.

#15 אורח - JoannaMa

אורח - JoannaMa
  • אורחים

פורסם 27/09/2015 - 14:37

If you can't whole reject your craving to intumesce a cigarette, so do so in many piazza absent from your person. So You penury to be actor gingerly with it. Remember, these are manner changes that I am suggesting discount disulfiram 250mg on line. Thither is nil butch approximately dining on salad, and near men wouldn't be caught slain at a Metric Watcher's merging. The causes of cephalalgia could be some. " "What are we genetically and environmentally predisposed to rust order 20mg revatio overnight delivery impotence mayo. Establishing an employ process is something almost Americans fuck they want to do. Heritable codes screw not been edited so that our bodies fiat creature incessantly. 2) Modest febricity prolonging for hours 250 mg antabuse visa. Erstwhile this is done, a practician keep execute Reiki on oneself. Sensing inner. The men who are supra 45 and women who are supra 55 are unclothed to this order tamoxifen 10 mg overnight delivery. Interpret Flax Source Lubricator as it contains a harmonious allocate between Omega-3 and Omega-6. Celebrating holidays with line and friends unremarkably includes communion competitor foods, stories and smiles. What would this intend order 400mg albenza amex.




0 משתמשים קוראים נושא זה

0 משתמשים, 0 אורחים, 0 משתמשים אנונימיים