Question: Look i need this in C not C++ or for the ios I have this but its not what i need #include using namespace std;

Look i need this in C not C++ or for the ios

Look i need this in C not C++ or for the ios

I have this but its not what i need

#include

using namespace std;

int main() { // Declaring variables int N, T, num, cntEq = 0, cntGtr = 0, cntLess = 0;

/* This while loop continues to execute * until the user enters a a positive number */ while (true) { // Gettingh the number entered by the user cout > N;

/* If the user enters negative value. * Then display error message */ if (N

// Reading the second number cin >> T;

// This loop continues to run for N number of times for (int i = 1; i > num; if (num

// Displaying the output printf("Saw %d values greater than %d ", cntGtr, T); printf("Saw %d values equal than %d ", cntEq, T); printf("Saw %d values less than %d ", cntLess, T);

return 0;

2. Name this program two.c - This program initially reads two values - an integer N (which is always a positive integer) and a second integer T (which could be any value) from standard input. It then reads N integers and counts the numbers that are greater than T, the numbers equal to T, and the numbers less than T. It then prints out these three counts. A sample execution of the program is shown below. /a.out Enter the number of values to read: 10 25 0 25 50 75 25 25 25 5 1 100 Saw 3 values greater than 25 Saw 4 values equal to 25 Saw 3 values less than 25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!