adspace
"c sharp" code for factorial using static variables
Answer Posted / amer
static void Main(string[] args)
{
int x=1;
int b=Convert.ToInt32(Console.ReadLine());
for (int j = 1 ; j <= b; j++)
{
x = x * j;
Console.WriteLine(x);
}
}
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category