#include using namespace std; int main() { int i,j,N; cout<<"Tapez la valeur de N : ";cin>>N; for(i=1;i<=N;i++) { for(j=1;j<i;j++)cout<<" "; for(j=1;j<=N+1-i;j++)cout<<"*"; cout<<endl; } return 0; }
- Thursday
- December 19th, 2024
- Ajouter un cours
#include using namespace std; int main() { int i,j,N; cout<<"Tapez la valeur de N : ";cin>>N; for(i=1;i<=N;i++) { for(j=1;j<i;j++)cout<<" "; for(j=1;j<=N+1-i;j++)cout<<"*"; cout<<endl; } return 0; }