Showing posts with label Input as parameter in loop. Show all posts
Showing posts with label Input as parameter in loop. Show all posts

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");
}
}
}