![]() |
VOOZH | about |
Programs to print following pattern.
Examples:
Input : 6 Output : * * * * * * * * * * * * * * * * * * * * * * * *
Output:
* * * * * * * * * * * * * * * * * * * * * * * *
Program to print following pattern.
Examples:
Input : 6 Output : * * * * * * * * * * * * * * * * * * * * * * * *
Output:
* * * * * * * * * * * * * * * * * * * * * * * *
Program to print following pattern.
Examples:
Input : 6 Output : * * * * * * * * * * * * * * * * * * * * * * * *
Output:
* * * * * * * * * * * * * * * * * * * * * * * *
Program to print following pattern.
Examples:
Input : 6 Output : * * * * * * * * * * * * * * * * * * * * * * * *
Output:
* * * * * * * * * * * * * * * * * * * * * * * *
Time complexity: O(n^2) for given n
Auxiliary space: O(1)