subject

Int a, z=1; double i, m=1,s=0,b=1;
System. out. print("Enter the number:");
a=scan. nextInt();
for (int v=11 ; v>=1; v--)
{
z=v*z;
}
for (i=1; i<=a; i--) {
for (m=1; m<=11; m++)
{
if(m%2==1)
{
b=b*m;
}
}
s=s+b/z;
}
}
System. out. printin(s);

(Is this correct please someone check)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Int a, z=1; double i, m=1,s=0,b=1;
System. out. print("Enter the number:");
a=scan. ne...
Questions
question
Mathematics, 22.06.2021 23:20
question
Mathematics, 22.06.2021 23:20
question
Mathematics, 22.06.2021 23:20
Questions on the website: 13722367