Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  wegfgh
Language: JAVA
Code:
import java.lang.*;
public class bV9Jtn3Q {

    public static void main(String[] args) {
        int n=args[0];
int add=0;
if(n<=0)
System.out.println("invalid");
        for(int i=1;i<=n;i++) {
            add=add+args[i];
        }
System.out.println("sum of n numbers:"+add);

    }
}
Comments: