current position:Home>How to use int to define n integers and solve them

How to use int to define n integers and solve them

2022-02-04 17:26:01 CSDN Q & A

Title Description
Count the negative numbers in a set of numbers 、 zero 、 The number of positive numbers .

Input description
The first line is an integer n, The second line is n It's an integer

Output description
Output... In a separate line n Negative numbers in integers 、 zero 、 The number of positive numbers , The punctuation is Chinese punctuation .

sample input
10
12 0 -34 9 0 -53 9 99 0 0

sample output
negative :2, zero :4, Positive numbers :4




Take the answer :

Array :
int[] i = {12,0,-34,9,0,-53,9,99,0,0};


copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041725598384.html

Random recommended