![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.11.2020 05:50 ssssss190
Debug the program so it prints the factorial of a positive integer entered by the user. This is calculated by multiplying all the numbers from 1 up to that number together. For example, 5 factorial is 5*4*3*2*1 = 120.
import java. util. Scanner;
public class U4_L1_5_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System. in);
int num = scan. nextInt();
while(num >= 0){
int prod = 1;
prod = prod*num;
System. out. print(prod);
num--;
}
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
You know the right answer?
Debug the program so it prints the factorial of a positive integer entered by the user. This is calc...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 24.07.2021 14:00
![question](/tpl/images/cats/en.png)
English, 24.07.2021 14:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 24.07.2021 14:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 24.07.2021 14:00
![question](/tpl/images/cats/mat.png)
Mathematics, 24.07.2021 14:00
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 24.07.2021 14:00
![question](/tpl/images/cats/en.png)
English, 24.07.2021 14:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 24.07.2021 14:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/health.png)
Medicine, 24.07.2021 14:00
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 24.07.2021 14:00
![question](/tpl/images/cats/en.png)
English, 24.07.2021 14:00
![question](/tpl/images/cats/mat.png)
Mathematics, 24.07.2021 14:00
![question](/tpl/images/cats/mat.png)
Mathematics, 24.07.2021 14:00
![question](/tpl/images/cats/istoriya.png)
History, 24.07.2021 14:00