-
September 18th, 2012, 01:51 PM
#1
While statements- forgive the noob
I am new to C# and created the following while loop:
while (months <= 12)
while (months >= 60)
{
Console.Write("Invalid months. Must be >= 12 and <= 60");
Console.Write("\nEnter the number of months in the lease::");
months = Convert.ToInt32(Console.ReadLine());
}
Is this correct?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|