Computer Science, asked by saniaseraj2, 1 year ago

some one plz do this java program​

Attachments:

Answers

Answered by shivansh2404
1

hello I am a Java student from class 9 I all tell u the logic for both

f=1;s=0;

for(I=4;I less than equal to n;I+4)

{

s=1/I;

}

sopln(+s);

break

case2:

for(I=1;I less than equal to n;I++)

{

f=f*I;. // logic for factorial nos.

s=i/f;

}

sopln(+s);

break

Similar questions