Created
February 19, 2013 09:31
-
-
Save jamby77/4984357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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