#include <stdio.h>

void main() {
    char str[] = "Saya belajar bahasa pemrograman c";
    int x = sizeof(str) - 1;

    for (int i = 0; i < x; i++) {
        if (str[i] == ' ') {
            printf("\n");
            continue;
        }

        printf("%c", str[i]);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: