WHAT'S NEW?

Factorial Program

Factorial Program

class Factorial 
{
public static void main(String[] args) 
{
int counter,number=5,factorial=1;

for (counter=1;counter<=number ;counter++ )
{
factorial=factorial*counter;
}
System.out.println("Factorial of "+number+" is : "+factorial);
}

}

1 comment: Leave Your Comments

  1. I got the new the king casino no deposit bonus【Malaysia】
    sol.edu.kg William】pinterest in 2021, communitykhabar the king ventureberg.com/ casino no deposit febcasino.com bonus,【WG98.vip】⚡,taylorlancer,taylorlancer,golfking. wooricasinos.info

    ReplyDelete