10
10
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#include <iostream>
using namespace std;
int main()
{
int numbers[5], sum = 0;
cout << "Enter 5 numbers";
return 0;
}
2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
hold
3\\\\\\\\\on my
own \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
with errors
#include <iostream>
#include <stdlib.h>
#include <iomanip>
#include <conio.h>
if ((i % 10) == 0)
cout << endl;
cout << values[i] << "";
}
for (i = 0; i < 20; i++) {
(values[i] < 0) ? neg++ : pos++;
((values[i] % 2 == 0)) ? even++ : odd++;
}
cout << endl << "EVEN = " << even << "ODD = " << odd << endl;
cout << "POS = " << pos << "NEG = " << neg << endl;
getch();
}
only neg bhi hai also +
3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
caht \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#include <iostream>
#include <stdlib.h>
#include <iomanip>
#include <conio.h>
if ((i % 10) == 0)
cout << endl;
cout << values[i] << "";
}
for (i = 0; i < 20; i++) {
(values[i] < 0) ? neg++ : pos++;
((values[i] % 2 == 0)) ? even++ : odd++;
}
cout << endl;
}
4//////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////
histogram