package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String aa = bufferedReader.readLine();
int a = Integer.parseInt(aa);
String bb = bufferedReader.readLine();
int b = Integer.parseInt(bb);
String cc = bufferedReader.readLine();
int c = Integer.parseInt(cc);
int count =0;
int count1 = 0;
if(a>0) count1 = count1 + 1;
if(b>0) count1 = count1 + 1;
if(c>0) count1 = count1 + 1;
if(a==0) count1 = count1 + 0;
if(b==0) count1 = count1 + 0;
if(c==0) count1 = count1 + 0;
if(a==0) count = count + 0;
if(b==0) count = count + 0;
if(c==0) count = count + 0;
if(a<0) count = count + 1;
if(b<0) count = count + 1;
if(b<0) count = count + 1;
System.out.println("Number of negative numbers: "+ count);
System.out.println("Number of positive numbers: "+ count1);
//write your code here
}
}
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String aa = bufferedReader.readLine();
int a = Integer.parseInt(aa);
String bb = bufferedReader.readLine();
int b = Integer.parseInt(bb);
String cc = bufferedReader.readLine();
int c = Integer.parseInt(cc);
int count =0;
int count1 = 0;
if(a>0) count1 = count1 + 1;
if(b>0) count1 = count1 + 1;
if(c>0) count1 = count1 + 1;
if(a==0) count1 = count1 + 0;
if(b==0) count1 = count1 + 0;
if(c==0) count1 = count1 + 0;
if(a==0) count = count + 0;
if(b==0) count = count + 0;
if(c==0) count = count + 0;
if(a<0) count = count + 1;
if(b<0) count = count + 1;
if(b<0) count = count + 1;
System.out.println("Number of negative numbers: "+ count);
System.out.println("Number of positive numbers: "+ count1);
//write your code here
}
}