int count;
for(count=10;count<=1;count--)
{
Console.write("Hello");
}
Why Doesnt appear nothing when I run this code?? have logic for me...
int count;
for(count=10;count<=1;count--)
{
Console.write("Hello");
}
Why Doesnt appear nothing when I run this code?? have logic for me...
int count;
for(count=10;count>=1;count--)
{
Console.write("Hello");
}
Try it now. Looks like you were just confused about how the for loop works. The second statement means 'as long as it is true' but 10 is never <= than 1.
Regards
Hi,
Write is with capital letter like Console.Write("Hello");
. Remember that C# is case-sensitive.
Regards,
Camilo
int count; for(count=10;count>=1;count--) { Console.write("Hello"); }
Try it now. Looks like you were just confused about how the for loop works. The second statement means 'as long as it is true' but 10 is never <= than 1.
Regards
thx..
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.