Unit 31.7

Run Settings
LanguageC
Language Version
Run Command
#define _CRT_SECURE_NO_WARINGS #include <stdio.h> int main() { int i,k,num1; scanf("%d", &num1); for (i = 1; i <= num1; i++) { for(k = 1; k <= (2 * num1 -1); k++) { if(num1 > i - k && num1 < i+k ) printf("*"); else printf(""); } printf("\n"); } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines