Java program to print the product of numbers from 1 to 10
Answers
Answered by
0
whatttttt is your question correctly ask
Answered by
3
using System;
public class Prod {
static void Main() {
int prod;
int i;
prod = 1;
for(i=1; i <= 10; i++) {
prod = prod * i;
}
Console.WriteLine("Product is " + prod);
}
}
Similar questions