Question:- What is Variables?
Ans:- Variables are places in memory reserved for your use.The amount of memory reserved for you on the type of variable.
we will be using an int variable This type of variable is used to hold integer type value.
For an example:-
using System;
class example
{
public static void Main()
{
int myvar=1;
while(myvar<20)
{
myvar++;
Console.Writeline(myvar.Tostring());
}
}
}
Ans:- Variables are places in memory reserved for your use.The amount of memory reserved for you on the type of variable.
we will be using an int variable This type of variable is used to hold integer type value.
For an example:-
using System;
class example
{
public static void Main()
{
int myvar=1;
while(myvar<20)
{
myvar++;
Console.Writeline(myvar.Tostring());
}
}
}
No comments:
Post a Comment