Computer Science, asked by daitijhya47, 1 year ago

Java program to print the product of numbers from 1 to 10

Answers

Answered by roshni9361
0
whatttttt is your question correctly ask
Answered by varunmadkaikar
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