Computer Science, asked by matthewplaysytlive, 9 months ago

Write a program in java to accept 10 numbers. Show the sum of only the negative numbers. ​

Answers

Answered by Anonymous
15

Explanation:

import java.util.Scanner;

class example.

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

int number,negative=0,positive_even=0,positive_odd=0;

while(true)

hope helps u ☺️☺️

please mark as brainlist ☺️☺️

Similar questions