UoW SG Corner

Welcome to UoW SG Corner, a forum for all of us!!! We can have a chit chat here, share anything we have! Make your university life more interesting with this forum! Enjoy it!!!
HomeHome  ­CalendarCalendar  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Assignment 3 - Answers

View previous topic View next topic Go down 
AuthorMessage
donysukardi
Admin


Number of posts: 54
Age: 19
Location: Holland Drive
Registration date: 2008-10-05

PostSubject: Assignment 3 - Answers   November 10th 2008, 20:46

1. B
2. C
3. B
4. D
5. A
6. D
7. A
8. C
9. D
10. B
11. E
12. 6
13. 00121012
14.
void printTriangle (int height)
{
int outerLoopIdx, innerLoopIdx, tabCounter=0;

for (outerLoopIdx=height;outerLoopIdx>=1; outerLoopIdx--)
{
for (int tab=0; tab < tabCounter; tab ++)
cout << " \t";

for (innerLoopIdx=1; innerLoopIdx<=outerLoopIdx; innerLoopIdx++)
cout << innerLoopIdx << "\t" ;

cout << endl;
tabCounter++;
}
}
Back to top Go down
View user profile http://uowsgcorner.forumotion.net
 

Assignment 3 - Answers

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
UoW SG Corner :: Classes :: CSCI114-
Post new topic   Reply to topic