Uses Of ComputersEssay Preview: Uses Of ComputersReport this essayQUESTION 1.Write a program to solve the following equation with values of n & c being entered by the user(n! * (n-c)!) / c!import java.io.*;class Calc{ //class beginspublic void main()throws IOException{ //main() beginsBufferedReader ob=new BufferedReader(new InputStreamReader(System.in));System.out.println(“Enter the value of n.”);int n=Integer.parseInt(ob.readLine());System.out.println(“Enter the value of c.”);int c=Integer.parseInt(ob.readLine());int x,y,z;x=factorial(n);y=factorial(c);z=factorial(n-c);along with a message*/} //main() endspublic int factorial(int a){ //factorial() beginsint i,f=1;for(i=1; i<=a; i++)f=f + a.sumOf(i+1,p-1);int i=factorial((f-a)j*f) - 1;int j=factoriali(j);j*j* (j*f);for(j=0; j

Get Your Essay

Cite this page

Bufferedreader Ob And Public Void. (August 26, 2021). Retrieved from https://www.freeessays.education/bufferedreader-ob-and-public-void-essay/