发布网友 发布时间:2024-10-23 22:29
我来回答
共1个回答
热心网友 时间:2024-11-01 18:10
#include <stdio.h>int main(void){int i,n;printf("Input a number: ");scanf("%d",&n);for(i=1;i<=n;i++){printf("%5d ",i*(i+1)/2);if(i%5==0)printf("\n");}printf("\n");return 0;}