Home » » if ашиглахгүй их бага олох

if ашиглахгүй их бага олох

#include
#include
int main(){
  int a,b,max;

  scanf("%d%d",&a,&b);
  max=(a+b)/2+fabs(a-b)/2;
  printf("max=%d\n",max);
  return 0;

}

а-гараас өгнө
b-гараас өгнө

Share this article :
 
Copyright © 2015 Tаамаглал
Distributed By Gooyaabi Templates