Skip to content
Unknown's avatar

JerryIndia

  • Home
  • Contact

Tag: commandlineargument

Factorial Program in Java | Using Command argument | Interview Code

//coded by:- aniketkoli183@gmail.com
//for more codes visit here:- http://jerryindia.home.blog

import java.util.*;

class javafactorial
{
	public static void main(String[] args) 
	{
		int no=Integer.parseInt(args[0]);
		int tempo=1;
		for(int i=1;i<=no;i++)
		{
			tempo*=i;
		}
		System.out.println("\nFactorial is:= "+tempo);
	}
}
Aniket Koli Java Leave a comment July 2, 2019 1 Minute

Peoples are here

  • 349 hits

Explore More

  • Data structure using C++
  • Interview Code
  • Java
  • Problem Solving
  • Uncategorized
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • JerryIndia
    • Already have a WordPress.com account? Log in now.
    • JerryIndia
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started