Friday, September 1, 2023

Asterisks diagonal from up left to right down

 // This program builds asterisks diagonal from up left to right down 

#include <iostream>

#include <string>

using namespace std;

int main(){

for(int i=1;i<=10; i++)

{

for(int j=1;j<=i; j++) cout <<" ";

cout << "*"<< endl;

}

    return 0;

}

No comments:

Post a Comment

NaCl.xyz Generator with Interactive 3D Visualization

NaCl.xyz Generator with Interactive 3D Visualization NaCl.xyz Generator with Interactive 3D Visualization ...