1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdio.h> int main() { char Buf[100]; int Count; for (Count = 1; Count <= 20; Count++) { sprintf(Buf, "->%02d<-\n", Count); printf("%s", Buf); } return 0; } /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/