0

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!!

4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by arkoenig
0

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;

}

Edited by Akill10: n/a

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.