+ 1
Help me with this code (C)
The output should be * * *
5 ответов
+ 5
Show your attempts
+ 2
Show your code
+ 1
#include <stdio.h>
int main() {
printf("\t*\n*\t*\n") ;
return 0;
}
+ 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
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
*****
* *
* *
* *
* *
*****