Computers and Technology

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)

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 00:00, miguelturner
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, asiaosterling
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
image
Computers and Technology, 24.06.2019 11:20, isabelperez063
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, ddatsman1730
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
Do you know the correct answer?
Int a, z=1; double i, m=1,s=0,b=1;
System. out. print("Enter the number:");
a=scan. ne...

Questions in other subjects:

Konu
Mathematics, 15.07.2019 02:00
Konu
Mathematics, 15.07.2019 02:00
Konu
Mathematics, 15.07.2019 02:00