#include <stdio.h>
int main(){
int a,b,c, minim=10;
scanf("%d%d%d", &a, &b, &c);
do{
if(a%10<minim) minim = a%10;
} while(a);
do{
if(b%10<minim) minim = b%10;
} while(b);
do{
if(c%10<minim) minim = c%10;
} while(c);
printf("%d", &minim);
return 0;
}
citeste a,b,c
minim ← 10
┌executa
│ ┌ daca (a%10<minim) atunci
│ │ minim ← a%10
│ └■
└cat timp (a != 0)
┌executa
│ ┌ daca (b%10<minim) atunci
│ │ minim ← b%10
│ └■
└cat timp (b != 0)
┌executa
│ ┌ daca (c%10<minim) atunci
│ │ minim ← c%10
│ └■
└cat timp (c != 0)
scrie minim