some one plz do this java program
Attachments:
Answers
Answered by
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
Math,
6 months ago
Hindi,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
Chemistry,
1 year ago