Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
staircase
//gcc 5.4.0 #include <stdio.h> void funcSum(int n) { //unsigned char buffer[10]={0}; for (int i=1; i<=n; i++) { //set value with space //memset(buffer,' ', size-i); //printf("%s",buffer); for (int j=i; j<n; j++) { printf(" "); } for (int j=1; j<=i; j++) { printf("#"); } printf("\n"); } } int main(void) { //printf("Hello, world!\n"); int n = 4; funcSum(n); return 0; }
run
|
edit
|
history
|
help
0
HW2A
Add sum.c
program1
linkedlist
Add.c
If Statement/ Decrements V2
swapping using call by reference
cstructHotel
18BCE2182 ASSESS_1 Q2-2
Lab 10 v1