摘要: Print the numbers of form (2^i)*(5^j) in increasing order, e.g. 1, 2, 4, 5, 8, 10, 16, 20, …Q:题目很简单了,就是打印整数序列,该序列的生成规则为(2^i)*(5^j)View Code 1 void Compute_Increasing_Order() 2 { 3 int arr[20] = {0}; 4 arr[0]= 1; printf("%d, ", arr[0]); 5 int count_2 = 0; 6 int count_5 = 0; 7 fo... 阅读全文
posted @ 2011-12-29 11:52 百分百好牛 阅读(211) 评论(0) 推荐(0) 编辑