WHAT IS THE SOURCE CODE OF THIS STATEMENT OR IN THIS QUESTION??

QUESTION IS:

enter 15 integers in the range of 1-20.find how many of these values fall in the range of 1-50, 51-100, 101-150 and 151-200.Validate the input so that only values from 1-200 will be entered.

can u answer this>??

i need only a source code in c++...

thank you!!

Is this what you need?

#include <iostream>

int main(int argc, char* argv[])
{

std::cout<<"Hi!\n"<<std::endl;
std::cout<<"enter 15 integers in the range of 1-20.find how many of these values fall in the range of 1-50, 51-100, 101-150 and 151-200.Validate the input so that only values from 1-200 will be entered."<<std::endl;
for(int i=0,i<1000,i++)
std::cout<<"DONT FORGET, I AM A LAZY SOD WHO WON'T DO MY OWN HOMEWORK"<<std::endl;

}

That doesn't need a computer program. If you enter the numbers from 1-20, then all of them will be in the range 1-50 and none of them will be in the other ranges you mentioned.

@Akill10: line 8 should have semicolons, not commas. Tut, tut.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.