Untitled
unknown
plain_text
a year ago
611 B
1
Indexable
Never
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; printf("Chuong trinh tim so lon nhat va so nho nhat\n"); printf("Nhap vao ba so a, b, c khac nhau: \n"); scanf("%d %d %d",&a, &b, &c); if(a > b && a > c ) { printf("So lon nhat: %d\n",a); } else { if(b > c && b > a ) { printf("So lon nhat: %d\n",b); } else { printf("So lon nhat: %d\n",c); } } if(a < b && a < c ) { printf("So nho nhat: %d\n",a); } else { if(b < c && b < a ) { printf("So nho nhat: %d\n",b); } else { printf("So nho nhat: %d\n",c); } } return 0; }