4
4
vi) Rewrite the following for loop program segment using while: [2]
for (int i=10, f =1; i>=1; i--)
{ f *=i;
System.out.println( f );
vii) Consider the following two-dimensional array answer the following [2]
questions:
int arril[]={{4,7,1},(1,5,3),(2,8,6}};
a)What is the order of the matrix?
b)Give output: System.out.println( arr[ 11[3] * arr[2][1]);
viii) Joy wanted to count the number of digits in a given number without using [2]
loop. Write the correct statements to help him?
++ a;
System.out.println( (++a +b--));
}