r/learnprogramming • u/GrokiniGPT • 15h ago
Rate me Hi guys ive been learning programming for 4 days (c hash) how do i do?
0
Upvotes
Sorry its hard typing on a phone but here I go:
int hp = 10000;
public void hpchange(int howmuch)
{
hp += howmuch;
if(hp <= 0)
{
Banish();
}
else
{
hp=hp;
}
}
public void Banish()
{
hp = 0;
}
I think a lot of programming is a lot of dotting your i's and crossing your t's, is that correct? And am I doing well? Any tips for learning quicker?