Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C++ by registered user xujiayu ( 5 years ago )
#include <stdio.h>
#include <conio.h>

int main()
{
	//nhap vao 2 so nguyen
	//tinh MIN va MAX cua 2 so do 
	int a,b;
	printf("\nnhap vao so nguyen a : ");
	scanf("%d",&a);
	printf("\nnhap vao so nguyen b : ");
	scanf("%d",&b);
    int max = a > b ? a : b;
	int min = a < b ? a : b;

	printf("\nmax = %d",max);
	printf("\nmin = %d",min);
	
	
	
	







   getch();
   return 0;


}

 

Revise this Paste

Your Name: Code Language: