Monday, May 31, 2010

The question in Class

Q: do not use ? and if to print a[10]={o,3,5,3,5,8,9,6,5,10} which is greater than 3 in one line.
A:
for(int i=0, i<10, i++)
a[i] >3 && printf("%d \n", a[i]);

No comments:

Post a Comment