[Solved] Pyramid of Stars [closed]
This is in no-way pretty, but it should work #include <stdio.h> void main(){ int size = 3,i; //you can’t just pass a value into main like that so I’ve initialised size here while (size){ //loop controlling line output i = 0; while (i++<size){//loop controlling * output within line putchar(‘*’);//output a * } putchar(‘\n’); //output a … Read more