NUMBERS INPUT HELP!

Jul 18, 2014 at 7:06am
Write your question here.



Hi my name is Gelly and i'm really having a headache with c++ because i'm a freshmen in this course. What am i going to do? here's the problem.. our assignment is.. if we input number ranges 1-9, the program will answer "one digit"
if we put numbers that range from 10-99, the program will answer "two digits"
if we put 100-999 it will tell us that it is "three digits"
if we put 1000-9999 the program will tell out of range. please help! i am using c++ msdc. Thanks. Hopefully i can get ideas :)
Jul 18, 2014 at 7:12am
what have you got so far?
Jul 18, 2014 at 7:14am
Learn about "if-elseif-else" statement. It's the most basic you can use for this problem.
Last edited on Jul 18, 2014 at 7:15am
Jul 18, 2014 at 7:44am
can you give me an example? please?
Jul 18, 2014 at 7:45am
Jul 18, 2014 at 7:53am
thanks a lot! :)
Jul 18, 2014 at 8:05am
so far i am using turbo c++ and i think it is more complicated than any c++ compiler. Hmm.. since i am from Philippines and i don't know why this is what are teacher told us that we will gonna use. she assumes that everyone of us knows how to run a simple program. anyway, is it possible if i use Microsoft visual c++? do you think it will still run on turbo c++ too? I'm sorry.. this is a little shock for me since i don't have any background regarding how to run a program. Thanks :) D


And yeah, does c++ turbo and other c++ has the same computer language?

thank you.
Jul 18, 2014 at 8:08am
I used turboC++ long time ago,
I should say that for basics both are not much different.

But turboC++ will have some of function that is not standard and cannot run on the other editor's compiler.

So I think your visualC++'s will be able to run on turboC++, but NOT ALL turboC++'s will be able to run on visualC++.
Jul 18, 2014 at 8:13am
If you talk about language, that's not the point.
All program you said is just 'Editor', it write codes, codes are plain text.

Notepad is one of editor, you'll see that's different from MS word(MSWord is not an editor).

So every editor can used to write any computer languages(But the color highlight is depended on which editor supports which language).

The different is COMPILER, you can google it if you want to know more.
Jul 18, 2014 at 8:20am
Thanks a lot! :) You really a big help. I am watching already on youtube. Thanks tera :)
Jul 18, 2014 at 8:21am
You're welcome.
Jul 19, 2014 at 11:36am
ask your professor for good or recommended book for your university or self..

in this problem you will have to use 3 control statement if else if else
that's all
Jul 19, 2014 at 8:34pm
Not only if and else you will have the use the operators < // smaller than and bigger than > >
Jul 20, 2014 at 6:21am
@Mizfizz of course it include its
Topic archived. No new replies allowed.