#include <stdio.h> int a,b,c,d; int main() { scanf("%d", &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: