1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <stdio.h> int main() { int s,i; for(i=1,s=1;i<=10;i++) { s=s*(-1); printf("%d\t",i*s); } return 0; } |
Subscribe to:
Post Comments
(
Atom
)
Post a Comment