package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int i = 0;
int o = 0;
if (a > 0 || a == 0){
i++;
}else{
o++;
}
if (b > 0 || b == 0){
i++;
}else{
o++;
}
if(c > 0 || c == 0){
i++;
}else{
o++;
}
System.out.println("Number of negative numbers: " + o);
System.out.println("Number of positive numbers: " + i);
}
}
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int i = 0;
int o = 0;
if (a > 0 || a == 0){
i++;}
else{
o++;
}if (b > 0 || b == 0){
i++;}
else{
o++;
}if(c > 0 || c == 0){
i++;}
else{
o++;
}
System.out.println("Number of negative numbers: " + o);
System.out.println("Number of positive numbers: " + i);
}
}