Hi! I am Adithya U,17 year old Engineering Student(IT) from Hassan,Karnataka
Currently you are witnessing C puzzle 12
First,let me state the rules in this thread:
1.Please do not give suggestions or hints.Specify the modified program only.
2.Before posting the program make sure it's working in the way i want.
Here is the 12th C puzzle
write a c program which gives the output as below..
^^When i press 'y' the program prints Hello! once more and if i press any other key the program ends
If i didn't specify the rules then anyone can solve this
Note :Specify your modified program along with the answer
Awards gallary:
Total puzzles solved :11
anuj919 3
me (If no one gets the solution then points will be for me) 2
saurabh kakkar 2
fun2sh 2
eggman 1
nigthtcrawler 1
a_k_s_h_a_y 1
anantkhaitan 1
khattam 1
maddy354 1
Leading:anuj919
*farm3.static.flickr.com/2052/2086499468_1f153310e7_o.gif
Currently you are witnessing C puzzle 12
The answer to this puzzle will be given soon till i frame another puzzle..
Don't forget to visit these other threads started by me
1.Lesser known facts in C:facts that you never knew about C
2.C in linux/unix:Bored of using TC,switch to linux.All about running C programs in linux/unix
3.Presenmaker 1.0resenmaker stands for presentation maker. It's a free software developed by me which can be used to create interactive agent animations in seconds. By using Presenmaker you can convert a lengthy text file into agent animation. It is very useful to create interactive presentations, tutorials, to read lengthy lessons etc
Index
1.Puzzle 1[#2]
2.Puzzle 2[#14]
3.Puzzle 3[#25]
4.Puzzle 4[#36]
5.Puzzle 5[#42]
6.Puzzle 6[#49]
7.Puzzle 7[#57]
8.Puzzle 8[#73]
9.Puzzle 9[#97]
10.Puzzle 10[#118]
11.Puzzle 11[#155]
11.Puzzle 12[#162]
First,let me state the rules in this thread:
1.Please do not give suggestions or hints.Specify the modified program only.
2.Before posting the program make sure it's working in the way i want.
Here is the 12th C puzzle
write a c program which gives the output as below..
Code:
Hello!
Continue(y/n)
Hello!
Continue(y/n)
Bye,press any key to exit
If i didn't specify the rules then anyone can solve this
Rules
maximum of 2 header files -stdio.h and conio.h
no variables,constants
no structures,pointers,user defined functions..
no looping structure(for ,while,dowhile etc..)
no goto statement
the words if and else shouldn't appear in the whole program
conio.h should be included only for getche() i.e, getch() etc.. are not allowed
Note :Specify your modified program along with the answer
Awards gallary:
Total puzzles solved :11
anuj919 3
me (If no one gets the solution then points will be for me) 2
saurabh kakkar 2
fun2sh 2
eggman 1
nigthtcrawler 1
a_k_s_h_a_y 1
anantkhaitan 1
khattam 1
maddy354 1
Leading:anuj919
Last edited: