Skip to content

Instantly share code, notes, and snippets.

@jamby77
Created February 19, 2013 09:31
Show Gist options
  • Save jamby77/4984357 to your computer and use it in GitHub Desktop.
Save jamby77/4984357 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
// 4ete 4isla do sre6tane na 0 i namira max 4islo, koeto ne se deli na 3.
int n, max = -1000;
do {
printf("vyvedete chislo: ");
scanf("%d", &n);
if (n % 3 != 0 && n > max) {
max = n;
}
} while (n != 0);
printf("%d", max);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment