User: ch1215

  • Public profile

User profile: ch1215

User info
User name:ch1215
History
Joined:
Number of posts:6
Latest posts:

help with arrays
[quote] should look more like.. cout << "Employee gross wager : " << fixed << setprecision(2) <<show...

Semiprime
my bad, i thought it's still i<x/2.. But it works too if i<x on both isprime and isSemiprime. So i...

Semiprime
[quote]oops that s hould have been i<=x/2 but still it doesnt print 4[/quote] You mean it should ha...

Semiprime
if i<x then false, but if i<x/2 then it will return true.

Semiprime
[code] bool isprime(int x) { for(int i = 2; i<x/2 ;i++) [/code] Why i<x/2 ? Should be i<x, but ...

This user does not accept Private Messages