P Phantom Rhythm Honorary Poster Sep 15, 2021 #1 Di ko po alam paano maglagay ng ascii code kahit anong symbol for design sana, dun sa outer loop. salamat #include <stdio.h> int main() { int j, k, L; printf("Enter number of rows: "); scanf("%d", &L); for(j=1; j<=L; j++) { for (k=1; k<=L; k++) { if(j==1 || j==L || k==1 || k==L) { printf("*"); } else { printf(" "); } } printf("\n"); } return 0; }
Di ko po alam paano maglagay ng ascii code kahit anong symbol for design sana, dun sa outer loop. salamat #include <stdio.h> int main() { int j, k, L; printf("Enter number of rows: "); scanf("%d", &L); for(j=1; j<=L; j++) { for (k=1; k<=L; k++) { if(j==1 || j==L || k==1 || k==L) { printf("*"); } else { printf(" "); } } printf("\n"); } return 0; }
Solution 2 2 2pepot Sep 16, 2021 Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo..
Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo..
2 2pepot Forum Veteran Elite Sep 16, 2021 #2 Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo.. Attachments You do not have permission to view the full content of this post. Log in or register now. Upvote 0 Downvote Solution
Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo..
P Phantom Rhythm Honorary Poster Sep 16, 2021 TS TS #3 2pepot said: Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo.. View attachment 1618100 View attachment 1618102 Click to expand... thank you Upvote 0 Downvote
2pepot said: Example: ASCII value of integer 61 is character = check mo naka highlight na yellow, sample conversion lang yan ng ascii number to character, ikaw na bahala kung saan mo ilalagay sa code mo.. View attachment 1618100 View attachment 1618102 Click to expand... thank you