0

code MDC analysis (errors?)

#include <stdio.h> int main(void) { int n1,n2,resto; scanf("%d%d",&n1,&n2); resto=n1%n2; while(resto!=0);{ n1 = n2; n2 = resto; resto = n1%n2; } printf("%d",n2); return 0; }

13th Sep 2018, 9:36 PM
Gabriel Cardoso
Gabriel Cardoso - avatar
1 Réponse