1 条题解
-
0
C :
#include <stdio.h> #include <stdlib.h> int main() { printf("*\n"); printf("**\n"); printf("***\n"); printf("****\n"); printf("*****\n"); // system("pause"); return 0; }
C++ :
#include<bits/stdc++.h> using namespace std; int n; int main() { for(int i=0;i<5;i++,cout<<endl) { for(int j=0;j<=i;j++) { cout<<"*"; } } return 0; }
Pascal :
begin writeln('*'); writeln('**'); writeln('***'); writeln('****'); writeln('*****'); end.
- 1
信息
- ID
- 349
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者