Security filter app that filters the accessibility of things it deems inappropriate
Answer:
The program in Python is as follows:
n = int(input("Integer: "))
product = 1
for i in range(1,n+1):
product*=i
if(i!=n):
print(str(i)+" *",end =" ")
else:
print(i,end =" ")
print(" = ",product)
Explanation:
This prompts the user for integer input
n = int(input("Integer: "))
This initializes the product to 1
product = 1
This iterates through n
for i in range(1,n+1):
This multiplies each digit from 1 to n
product*=i
This generates the output string
<em> if(i!=n):</em>
<em> print(str(i)+" *",end =" ")</em>
<em> else:</em>
<em> print(i,end =" ")</em>
This prints the calculated product (i.e. factorial)
print(" = ",product)
Answer:
Check Yt
Explanation:
More often than not there are many video tutorials about every game imaginable.
1 is A
2 is probably C or B but I don't use Unity so I can't help much with that one.
Answer:
public static void timesTen(int num){
int numTimesTen = num*10;
System.out.println("The number "+num +" times 10 is "+numTimesTen);
}
Explanation:
In the code snippet above which is written in Java programming language, A method (function) is created. The return type is void since this method according to the question will only give an output and not necessarily return a value.
The methods only int parameter is multiplied by 10
Using string concatenation the following output is given
The number 5 times 10 is 50: For an argument of value 5