Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- int a, b;
- printf("vvedite chisla: \n");
- scanf("%d %d", &a, &b);
- while (a!=b) {
- if (a>b) a=a-b;
- else b=b-a;
- }
- printf("nod=%d ",a);
- return 0;
- }
Add Comment
Please, Sign In to add comment