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?

Kiểm tra mảng nhập vào là dãy tăng dần hay giảm dần

10cth1-2 January 24, 2011 Nam Le 0

[codes=c]#include
#include

int main()
{
  int A[100],i,n,flag=1;
  printf(“\n Nhap n=”);
  scanf(“%d”,&n);
  printf(“\n Nhap mang: \n”);
  for(i=0;i    {
      printf(“A[%d]=”,i);
      scanf(“%d”,&A[i]);
    }
  for(i=0;i    {
      if(A[i+1]        {
          flag=0;
          printf(“\n Day ko la day tang dan, phan tu ko tang dau tien la: %d \n”,A[i+1]);
          break;
        }
    }
  if(flag==1)
    printf(“\n Day la day tang dan \n”);
getch();
}[/codes]


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

Nam Le
lequocnam



0 responds

Leave a Reply

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