Wednesday, 11 July 2012

Input in Loop

Input in for loop


using System;
class abc
{
public static void Main()
{
int a,b;
Console.WriteLine("enter no b and a");
b=Convert.ToInt32(Console.ReadLine());
for(a=Convert.ToInt32(Console.ReadLine());a<=b;a++)
{
Console.WriteLine("hiu");
}
}
}

No comments:

Post a Comment