No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
first thing that I spotted is that you only passed in an array when you invoke call fuction
y is there a ; after if statement in line 24?
you can try: if first = last or if last = 0 then counter ++
confusion 1: Loop used to test if i is divisible by any number, the condition j<=(i/j) is used so that numbers wont be checked twice. if no number is divisible, then the loop will not break in between result j>(i/j)
maybe you can try to check then string length then check if its alpha or not.
try [CODE] for (i = 1; i <= lines; i++){ cout <<i; for(j = 1; j <= i; j++) // calculation to print start cout <<"*"; cout<<endl; }[/CODE]
The End.
sunyifei23