adi007 said:smiley is just the way to indicate the end....
It's just like normal char...
i luv digit forum but i hate spamer
i vul tigid murof
yeah seen that.adi007 said:example program here
*www.thinkdigit.com/forum/showpost.php?p=654017&postcount=21
noooo....fun2sh said:wat if the smiley appears in th mid like this
do u expect output like
Have a nice day
I am planning to upload the runtime vedio of the program on monday or tuesday...T159 said:yeah seen that.
During runtime also you have to press CTRL B to enter smiley
CTRL B gives ^B not a smiley in dos prompt
adi007 said:There is no separate output and input.The program is dynamic
I am planning to upload the runtime vedio of the program on monday or tuesday...
yeah my badanuj919 said:Sorry but it was puzzle no. 8
adi007 said:i think the answer given by anuj919 is wrong....
Not yet compiled and checked ...
But i think what the program is doing is accept the string and then clear the screen and then print the reverse of the string.This is wrong because I said the program is dynamic.....
Anyways ,I have prepared the animated gif run time output,will post it tommorow......
puzzle 9 added thread updated!!adi007 said:Hi! I am Adithya U,17 year old Engineering Student(IT) from Hassan,Karnataka
*farm3.static.flickr.com/2052/2086499468_1f153310e7_o.gif
Currently you are witnessing C puzzle 9
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 9th C puzzle
this is the same 8th puzzle but there are somes rules..
Write a c program which gives accepts words and at the end of a word,it will replace the word by it's reverse.This is done until a smiley is encountered.At the end it will print "Have a nice day".That is if i entered i luv c and i think it's rocks will give the output as..
to be more explainable
as soon i press space,it will becomeCode:Enter the string i luv_
Code:Enter the string i vul _
Rules
1.No user defined functions..
2.No usage of clrscr()
3.No header file other than stdio.h should be used.
4.No * symbol in the whole program
Note :Specify your modified program along with the answer
Awards gallary:
Puzzles solved :8
me (If no one gets the solution then points will be for me) 2
saurabh kakkar 2
fun2sh 2
eggman 1
nigthtcrawler 1
anuj919 1
Leading:saurabh kakkar,fun2sh and myself