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.
- Prepare
- Algorithms
- Warmup
- Simple Array Sum
- Discussions
Simple Array Sum
Simple Array Sum
Sort by
recency
|
3486 Discussions
|
Please Login in order to post a comment
So what???
import java.util.*; public class Solution{ public static void main(String[] args) { int sum=0; Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int arr[]=new int[n]; for(int i=0;i
A solution that I liked more (Python 3).
Note: First, you need to import the necessary file: