Participants in open source community projects get experience and make connections with other professionals that can be valuable resources during a job hunt.
Answer:
Explanation:
First we must import the package import java.util.*;
we create our scanner and we declare our variables and array
We create a for cycle, and inside the for the If sentence to evaluate every number then we print our negative and positive numbers.
numbers[10]
nega
posi
Scanner num = new Scanner(System.in);
int numbers[] = new int[10];
int nega = 0;
int posi = 0;
for(int i=0; i<=9; i++)
{
System.out.print("Enter the number "+ (i+1) +":");
numbers[i] = num.nextInt();
if(numbers[i]<0){
nega++;
}
else
{
posi++;
}
System.out.println("Negative numbers are: " + nega);
System.out.println("Positive numbers are: " + posi);
}
If columns A and B has equal length you can use simply formula =A1=B1 for each row. i.e
=A1=B1 for first row
=A1=B1 for second row etc
Formula returns TRUE if values are equal or FALSE if they are not equal
#include <stdio.h>
#include <time.h>
int main()
{
time_t s, val = 1;
struct tm* current_time;
s = time(NULL);
current_time = localtime(&s);
printf("Day of the month = %d\n",current_time->tm_mday);
printf("Day in this year = %d\n",current_time->tm_yday);
printf("Day in this week = %d\n",current_time->tm_wday);
printf("Month of this year = %d\n",(current_time->tm_mon + 1));
printf("Current year = %d\n",(current_time->tm_year + 1900));
printf("hour:min:sec = %02d:%02d:%02d\n",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
return 0;
}
The answer is <span>wait state. </span><span> Dead state is NOT the name of the time delay in a cpu caused by differences between the speed of the cpu and ram. Wait state </span><span>is the name of the time delay in a CPU caused by differences between the speed of the CPU, the system bus, and memory circuits.</span>