-
-
Save rkhang7/61ab4599a70883e336e18331ef5cd485 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(int argc, char *argv[]) | |
{ | |
int a[3]; | |
int max=0; | |
printf("Nhap 3 so:"); | |
for(int i=0;i<=2;i++) | |
{ | |
scanf("%d",&a[i]); | |
} | |
for(int i=0;i<=2;i++) | |
if(max<=a[i]) max=a[i]; | |
printf("MAX=%d",max); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment