标签:style blog color io div amp log sp
#include <cstdio> int main() { int i = 0, j = 0; while (i <= 100 && j <= 100) { if (i < j) { printf("(%d) ", i); i += 3; } else if (i > j) { printf("[%d] ", j); j += 5; } else { printf("{%d} ", i); i += 3; j += 5; } } printf("\n"); return 0; }
打印0~100之间被3或5整除的数,布布扣,bubuko.com
标签:style blog color io div amp log sp
原文地址:http://www.cnblogs.com/xly0713/p/3925954.html