Search found 1 match

by kanhabhu
Tue Jun 12, 2012 3:54 pm
Forum: C++
Topic: scanf("%I64d",&p);
Replies: 4
Views: 5930

import java.util.Scanner; public class java4 { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int i,j,d=0,t=0; float c; long a[]=new long[n]; long b[]=new long[n]; for( i=0;i<n;i++) a =sc.nextLong(); for(i=0;i<n;i++) { c=0f; for(j=0;j<n;j++) { if(i!=j...

Go to advanced search