But even with that change, the program won't work because your parentheses are not placed properly. I suggest you replace that line (line 23) with the following line:
1 2
if (islower(ar[x]))
lower++;
The function 'islower' returns a bool i.e 'true' or 'false'.
So you don't need to check if it equals 0 or not. You can just leave it like I told you and the compiler knows that it has to check if it is true or not.
i cant believe i didnt catch that small mistake the last program i was doing was doing it to true or false and i guess it got mix with this one but yes i tried doing what you said newbiee999 and it totally works now !!! thank you so much :D