This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Tìm max/min [C]

10cth1-2 August 1, 2011 Nam Le 0

Tìm max và trả về giái trị:

[codes=c]int max(int a[], int n)
  int max=a[0];
  for(int i=0; i    if(a[i]>max)
  return max;

TÌm max trong các phần tử nhỏ hơn x trong mảng:

[codes=c]int TimMax_X(int *a, int n, int &x)
    int max=-32768;
    printf(“\nNhap x:”);
    for(int i=0;i        if(*(a+i)max)
    return max;

Last modified on December 9th, 2020 at 1:27 am

Nam Le

0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *