We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i dint understand the question.
in the sample input where n was 3, why did denominator for root(2) is calculated.
Should we find the denominators for all the squares of numbers below n.
Any Solution of this challenge?
i dint understand the question. in the sample input where n was 3, why did denominator for root(2) is calculated. Should we find the denominators for all the squares of numbers below n.
help me out
{
Scanner in = new Scanner(System.in); int array[]=new int[2]; int m = in.nextInt(); int b = in.nextInt(); int c,d; int sum=0; int j,k;double f,h;
for(k=2; k
//System.out.println(f); if((f
} g=f; h=f; //System.out.println(array[1]); }
sum=sum+array[1]; System.out.println(array[0]+"/"+array[1]); } System.out.println("sum="+sum); }}