hi all
i want to print pattern programs.i google but i dont understand whats the logic of this program. what is the easy way to remember such programs. where to start from?
hi all
i want to print pattern programs.i google but i dont understand whats the logic of this program. what is the easy way to remember such programs. where to start from?
What do you mean by "pattern program"?
The idea is to develop your problem-solving skills, not your memory. This way, each time you encounter a problem, you'll be equipped to solve it yourself.
I always start with:
Code:#include <stdio.h> int main(void) { return 0; }
i cant write here but you can see this link Number Patterns - Program in C
there are so many pattern programs but they didnt explain any of them
can you explain me how the code works?
I suggest you pick one pattern to start with. Do not bother looking at the code. Instead, sit down with a pencil and paper and try to work out the logic yourself on how to get that output. Break the solution down into little discrete steps. Once you understand the logic in this way, converting it to code should be trivial.
As has already been explained in another thread, telling you how code works will not learn you anything. You need to go through the process yourself.
Start with the first one, then work your way through the list.
Yes, the first few will be quite hard.
But as your skill develops, they will get easier.
You do want to actually be a programmer don't you, and not just put up a good talk in social settings.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.