#include <stdio.h>
#include <stdbool.h>
// P を先に宣言
void P(int *a);
int main() {
int a = 0;
bool n = true;
while(n){
printf("Hello world!\n");
if (a < 10) {
P(&a);
} else {
n = false;
}
}
return 0;
}
void P(int *a) {
*a += 1;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: