Skip to content

Instantly share code, notes, and snippets.

@rkhang7
Created November 13, 2018 12:58
Show Gist options
  • Save rkhang7/61ab4599a70883e336e18331ef5cd485 to your computer and use it in GitHub Desktop.
Save rkhang7/61ab4599a70883e336e18331ef5cd485 to your computer and use it in GitHub Desktop.
#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