Computer Science, asked by mrnisarahmed77, 11 months ago

variable description table for java program of array variable​

Answers

Answered by Anonymous
1

Answer:

class Demo

{

public static void main(String args[])

{

int fact=1;

for(int i=1;i<=5;i++)

{

fact=fact*i;

}

System.out.println(“Factorial of 5 is “+fact);

}

}

The Variable Description Table for this program will be :

Variable Name

Variable Type

Purpose

args

String[] To accept Command-line Arguments

i int

To iterate the for-loop for Factorial calculation

fact

int

To Calculate and

Similar questions