I tried learning programming at my university, but I found it to be too difficult. They made us learn Scheme, which I thought was a useless and obsolete language that no one uses nowadays. I also tried learning a bit of Java on my own by reading a textbook.
It seems that for programming, you need to be able to think logically in a certain way. For some exercises, I would spend hours trying to figure it out but I still wouldn't be able to think of a remotely sensible solution.
My main question is this: Is it possible for just anyone to learn programming or should I just give up because I'm not smart enough? It seemed like everyone else in my Computer Science class understood everything instantly while I was the only one struggling.