#include <stdio.h>
int main() {
int a,b,c,d;
scanf("%d", &a); //input a
b=3;
c=0;
while(a>=b) {
a=a-b;
c=c+1;
}
d=a;
printf("risultato = %d\n", c);
printf("resto = %d", d);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: