标签:blog io for 2014 log as file class ip
#include <stdio.h> void main() { int i =1,a = 2, b= 0, n = 0; for (int j = 0;i+b<=21;j++) { n = i; printf("%-3d",n); for (int k = 0;n+a+k<=21;k++) { n =n+a+k; printf("%-3d",n); } printf("\n"); b++; i = i+b; a++; } }
标签:blog io for 2014 log as file class ip
原文地址:http://blog.csdn.net/syytem004/article/details/41379973