Re: [algogeeks] Output of the code

2011-04-07 Thread Munish Goyal
Dude Umer. Now i think the output is clear to you.

Anyhow it is not appropriate to instigate in a worldwide group by putting in
such comments and that
too in a trivial (unsolicited, spam) question post.

I hope the moderator takes note of this.
On Mon, Mar 28, 2011 at 1:24 PM, Umer Farooq the.um...@gmail.com wrote:

 btw, true is defined in cpp.


 On Mon, Mar 28, 2011 at 12:54 PM, Umer Farooq the.um...@gmail.com wrote:

 The compiler doesn't want to get killed like poor 
 manihttp://www.allvoices.com/s/event-8408191/aHR0cDovL2JsYWNrY29icmEucG9zdGVyb3VzLmNvbS9leHRyZW1pc3QtaW5kaWEta2lsbHMtdGhlLXBvb3ItcGFycm90LWZvci1wcmU=,
 therfore it is giving a compiler error :P


 On Mon, Mar 28, 2011 at 10:43 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Umer




 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Munish

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-04-06 Thread Umer Farooq
btw, true is defined in cpp.

On Mon, Mar 28, 2011 at 12:54 PM, Umer Farooq the.um...@gmail.com wrote:

 The compiler doesn't want to get killed like poor 
 manihttp://www.allvoices.com/s/event-8408191/aHR0cDovL2JsYWNrY29icmEucG9zdGVyb3VzLmNvbS9leHRyZW1pc3QtaW5kaWEta2lsbHMtdGhlLXBvb3ItcGFycm90LWZvci1wcmU=,
 therfore it is giving a compiler error :P


 On Mon, Mar 28, 2011 at 10:43 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Umer




-- 
Umer

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-04-06 Thread Umer Farooq
java:

System.out.println(Hamara cricket sey kiya waasta yaaro! \nHamara tou qaumi
khail Hockey hai!);

On Tue, Mar 29, 2011 at 2:29 PM, pacific :-) pacific4...@gmail.com wrote:

 ruby :

 putsIndia will win the worldcup 2011


 On Mon, Mar 28, 2011 at 9:04 PM, shady sinv...@gmail.com wrote:

 python 2.6

 print 'India will win the World Cup 2010'


 On Mon, Mar 28, 2011 at 8:45 PM, Praveen Kumar praveen97...@gmail.comwrote:

 Here is the correct program :

 #includeiostream
 using namespace std;

 int main()
 {
while(true)
{
  coutIndia will win the World Cup 2010endl;
}

 return 0;


 }


 On Mon, Mar 28, 2011 at 8:42 PM, Praveen Kumar 
 praveen97...@gmail.comwrote:

 true is a keyword representing 1 and false as 0. The program will print
 the line a single time.

 On Mon, Mar 28, 2011 at 11:13 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.



  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 regards,
 chinna.

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Umer

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-04-06 Thread Umer Farooq
The compiler doesn't want to get killed like poor
manihttp://www.allvoices.com/s/event-8408191/aHR0cDovL2JsYWNrY29icmEucG9zdGVyb3VzLmNvbS9leHRyZW1pc3QtaW5kaWEta2lsbHMtdGhlLXBvb3ItcGFycm90LWZvci1wcmU=,
therfore it is giving a compiler error :P

On Mon, Mar 28, 2011 at 10:43 AM, balaji a peshwa.bal...@gmail.com wrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.com wrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Umer

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-03-29 Thread pacific :-)
ruby :

putsIndia will win the worldcup 2011


On Mon, Mar 28, 2011 at 9:04 PM, shady sinv...@gmail.com wrote:

 python 2.6

 print 'India will win the World Cup 2010'


 On Mon, Mar 28, 2011 at 8:45 PM, Praveen Kumar praveen97...@gmail.comwrote:

 Here is the correct program :

 #includeiostream
 using namespace std;

 int main()
 {
while(true)
{
  coutIndia will win the World Cup 2010endl;
}

 return 0;


 }


 On Mon, Mar 28, 2011 at 8:42 PM, Praveen Kumar praveen97...@gmail.comwrote:

 true is a keyword representing 1 and false as 0. The program will print
 the line a single time.

 On Mon, Mar 28, 2011 at 11:13 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.



  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
regards,
chinna.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-03-28 Thread Praveen Kumar
Here is the correct program :

#includeiostream
using namespace std;

int main()
{
   while(true)
   {
 coutIndia will win the World Cup 2010endl;
   }

return 0;

}


On Mon, Mar 28, 2011 at 8:42 PM, Praveen Kumar praveen97...@gmail.comwrote:

 true is a keyword representing 1 and false as 0. The program will print the
 line a single time.

 On Mon, Mar 28, 2011 at 11:13 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-03-28 Thread shady
python 2.6

print 'India will win the World Cup 2010'

On Mon, Mar 28, 2011 at 8:45 PM, Praveen Kumar praveen97...@gmail.comwrote:

 Here is the correct program :

 #includeiostream
 using namespace std;

 int main()
 {
while(true)
{
  coutIndia will win the World Cup 2010endl;
}

 return 0;


 }


 On Mon, Mar 28, 2011 at 8:42 PM, Praveen Kumar praveen97...@gmail.comwrote:

 true is a keyword representing 1 and false as 0. The program will print
 the line a single time.

 On Mon, Mar 28, 2011 at 11:13 AM, balaji a peshwa.bal...@gmail.comwrote:

 the code will give error as there is nothing called true defined.

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.comwrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 A.Balaji


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.



  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Output of the code

2011-03-27 Thread Umer Farooq
Hi,

Can anyone tell me the output of the following code?

#include iostream.h

int main()
{
.. if (true)
.. cout  Pakistan will win the WorldCup 2011\n;
return 0;
}

-- 
Umer

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-03-27 Thread Gunjan Sharma
Yup that's right
On Mar 28, 2011 8:30 AM, Praveen Kumar praveen97...@gmail.com wrote:
 Hi!
 I don't know why you asked that question.
 But, tell me if it is a C or C++ program. Anyhow, it will give compilation
 whatever the compiler be.
 Why?? cout is used in namespace 'std', if it is a C++ program iostream.h
 won't work and if it is a C program, cout won't work.
 Pakistan doesn't seem to win the world cup dude so even the compiler
 itself doesn't want to compile and print that statement. There will be no
 output.

 Cheers

 On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.com wrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Output of the code

2011-03-27 Thread balaji a
the code will give error as there is nothing called true defined.

On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq the.um...@gmail.com wrote:

 Hi,

 Can anyone tell me the output of the following code?

 #include iostream.h

 int main()
 {
 .. if (true)
 .. cout  Pakistan will win the WorldCup 2011\n;
 return 0;
 }

 --
 Umer

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
A.Balaji

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.