Here is the correct program :
#include<iostream>
using namespace std;
int main()
{
while(true)
{
cout<<"India will win the World Cup 2010"<<endl;
}
return 0;
}
On Mon, Mar 28, 2011 at 8:42 PM, Praveen Kumar <[email protected]>wrote:
> 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 <[email protected]>wrote:
>
>> the code will give error as there is nothing called "true" defined.....
>>
>> On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq <[email protected]>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 [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.