User profile: Shren

User info
User name:Shren
Old user name:Shreyas Hirekhan
Number of posts:19
Latest posts:

C++ program to estimate the springtime count of deer in a park for 10 consecutive years
You will want to use the AND operator for situations like this. For example, for the case where th...

Insertion Sort Algorithm with comparison counter
[code] for (int i = 1; i < numOfElements; i++) { for(int k=i+1;k<=numOfElements;k++) ...

Insertion Sort Algorithm with comparison counter
Why would it be 45 comparisons? You have 11 values. 0 1 2 3 4 5 6 7 8 9 10 COmpare 1 to 1, 1-2-1...

I have to create a payroll program
You can do with spaces, it will probably be easier. [code] int a; int b; int c; int d; int e; co...

I need help with ouputting stars
OH yeah! I would generally stay away from recursively loops, just for this reason. Goodluck.