#include <iostream>
#include <stdio.h>

class name {
    private:
        int *k;
    public:
        name(int *j){
            k = j;
            *k = 0;
        };
        int get(){
            *k += 1;
            return *k;
        };
        
};

int main() {
    //¥
    int o = 0;
    name FOR(&o);
    while (FOR.get() < 5){
        printf("%d\n",o);
    };
    return 0;
};

Embed on website

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