Sand glass pattern
Lesson 22 of 30 in Coddy's Star Pattern Bootcamp course.
Challenge
EasyWrite a program that prints a Sand glass pattern of stars as shown below. The pattern consists of 9 rows and 9 columns.
Expected Output Pattern:
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
* * *
* * * * *
* * * * * * *
* * * * * * * * * Try it yourself
#include <stdio.h>
int main() {
// Write code here
return 0;
};All lessons in Star Pattern Bootcamp
4Advanced Level Pattern's
Upper Butterfly PatternLower Butterfly PatternFull Butterfly PatternInverted Butterfly PatternSand glass patternHeart Pattern3Intermediate Level Pattern's
Pyramid of starsInverted PyramidDiamond PatternRight Direction ArrowLeft Direction ArrowPlus PatternX Pattern