Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  exa
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,n=1;
puts("Input an integer");
scanf("%d",&i);
for(j=1;j<15;j++)
  {
   puts("Input another integer :");
   scanf("%d",&k);
   if(k<i)n++;
   i=k;
  }
printf("\nThe number of series in ascending is %d\n",n);
getch();
}          
Comments: