Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Harley Evans   on Jun 19 In Java Category.

  
Question Answered By: Pam Harrison   on Jun 19

First
int i, n = 20;
for (i = 0; -i < n; i--)
printf("-");

Second
int i, n = 20;
for(i = 0; i < n; n--)
printf("-");

third
adding 4
for(i = 40; i < n; i--)

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on question was asked in aptitude test Or get search suggestion and latest updates.


Tagged: