if anyone has suggestion for simple programs i can do for learning purpose , feel free to suggest them
Yeah, it seems your core point is to find excersizes.
As others suggested, find some yourself, which, I agree by own experience, quickly leads to tasks which are way too advanced for the level one is at, while one later figures out had better focused at learning some fundamentals better, first.
As it seems you decided for starting with C. In this case again I can recommend the KR (There are PDF versions on the internet. But I can neither tell if those are legal, nor if they are identical with the printed copy, which you can get used for a few bucks.)
To every chapter the book offers exercises exactly to the level it is. You begin with writing a simple degree celsius to fahrenheit converter, then line- and wordcounters, learn btw this way how to do first simple things on files, and continue becoming more and more advanced until you write a whole calculator program.
The solutions are not part of the book, since it's also part of learning to program, that there is not the only true solution, but many ways lead to the target.
Anyway you'll find easily lots of solutions by others on the internet, which you may take a peek at to get ideas, when you stuck.
Other books also for other languages as also online tutorials also provide such.
Anyway, if you want some ideas:
Since you already started using the random generator
write a dice program like I did on a vacation, when my wife and I wanted to play a board game, but had no dice:
It also come with some silly gadget: the dice are flashing randomly numbers until the result is shown.
You may add the program some options, like how many dice to use.
You already see, one way to get programming tasks is to improve a program, add functions, features.
A famous programming exercise in programming classes is to write a
hangman game.
Now I need to stop. Otherwise Alain complains I'm not writing single-line- or better one-word-statements.
