游客 Signup | Login
中文 | En

3173 - 直角三角形(星号)2

如题

Input

Output

Examples

Input

Output

    *
   **
  ***
 ****
*****

Solution C

#include <stdio.h>
#include <stdlib.h>
int main()
{
    printf("    *\n");
    printf("   **\n");
    printf("  ***\n");
    printf(" ****\n");
    printf("*****\n");
    // system("pause");
    return 0;
}

Solution C++

#include<bits/stdc++.h>
using namespace std;
int n;
int main()
{
	cout<<"    *"<<endl;
	cout<<"   **"<<endl;
	cout<<"  ***"<<endl;
	cout<<" ****"<<endl;
	cout<<"*****"<<endl;
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题