#include <stdio.h>

int main()
{
    int i, sum = 0;

    for (i = 1; i <= 100; i++)
    {
        if (i % 3 == 0)
        {
            sum += i;
        }
    }

    printf("1부터 100 사이의 모든 3의 배수의 합은 %d입니다.\n", sum);

    return 0;
}

Embed on website

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