I have a line of code that when inputted 3, the result will print out this result: The result of the code what i have so far is the triangle but I can’ seem to get rid of the middle line to make it a full diamond shape. Also "-" is not printing on the ..
Category : pyramid
I’m a beginning programmer and I’m a little bit stuck with this code. All I have to do is an asterisk pyramid like that: * ** *** **** ***** **** *** ** * But when my pyramid starts to decrease, it stops with 4 asterisks and I have no more ideas to fix it. Hope ..
After executing the code the first half is not getting instead receiving this output: Expecting: 1 232 34543 4567654 //Above output is not getting Getting: 1 230 34500 4567000 //Problem in printing the above pattern void p8(int n){ int star=1; int space=n-1; int number; for (int i = 1; i <= n; i++) { number=i; ..
Recent Comments