I know:
-basic cout/cin
-declaring single integers/strings
-currently learning 'for' loops

as you can see, my knowledge is extremely limited as of now, and i wish to have a few practice problems to have a go at. May i have some suggestions?

Recommended Answers

All 6 Replies

Here are some although googling would help you get more problems :

1) Create a program that checks if the input is odd or eve
2) Create a program that checks is a power of 2
3) Create a program that asks the user for a positive even number, if thats not supplied, then throw an error
4) Create a program that compares 2 strings and outputs its max
5) Create a program that has the user enter 2 numbers and outputs its max, min, and everage
6) Do #5 for 3 numbers then 4 numbers then 5

Try to generate a fibonacci series.....(range should be entered by user itself)

fibonacci series is.....

0 1 1 2 3 5 8......

i.e., initially 0 and 1 are printed and the next terms are the sum of previous two.....


try to solve it out...if u want, i'll provide you with hint....

Or you could have a look at this thread

Try to generate a fibonacci series.....(range should be entered by user itself)

fibonacci series is.....

0 1 1 2 3 5 8......

i.e., initially 0 and 1 are printed and the next terms are the sum of previous two.....


try to solve it out...if u want, i'll provide you with hint....

hmmm... seems like an interesting problem. i don't know how to get started with it though...

Or you could have a look at this thread

Ah thanks thats pretty helpful too.

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.