Help me with this code (C) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me with this code (C)

The output should be * * *

7th Mar 2022, 3:04 PM
Sumaya Sraboni
5 Answers
+ 5
Show your attempts
7th Mar 2022, 3:06 PM
A͢J
A͢J - avatar
+ 2
Show your code
7th Mar 2022, 3:10 PM
NonStop CODING
NonStop CODING - avatar
+ 1
#include <stdio.h> int main() { printf("\t*\n*\t*\n") ; return 0; }
7th Mar 2022, 3:10 PM
Sumaya Sraboni
+ 1
Do you want exact number of tabs as shown in the question? try using multiple tabs 3 tabs for 1st row and 5 tabs between 2nd and 3rd star
7th Mar 2022, 3:15 PM
NonStop CODING
NonStop CODING - avatar
0
Tab is a bit funny in SoloLearn code playground. I've tried and given up, I now manually enter the desired amount of spaces. Here is a challenge I was given by someone: Take a user input positive integer less than 24. Output a rhombus made of asterisks and spaces. Eg: n=5 ***** * * * * * * * * *****
7th Mar 2022, 11:06 PM
HungryTradie
HungryTradie - avatar