a= 3
a='Salam'
#include<iostream.h>
#include<conio.h>
main()
{
int n,x[100],y[100],k,i,j,max,maximum=0;
double m;
cout<<"Enter n:";
cin>>n;
for(i=0;i<n;i++)
{
cout<<"Enter x["<<i+1<<"]:";
cin>>x[i];
cout<<"Enter y["<<i+1<<"]:";
cin>>y[i];
}
for(i=1;i<n;i++)
for(j=0;j<i;j++)
{
max=0;
m=double((y[i]-y[j])/(x[i]-x[j]));
for(k=0;k<n;k++)
if((y[k]-y[i])==m*(x[k]-x[i]))
max++;
if(max>maximum)
maximum=max;
}
cout<<"The maximum no of rabbits that he can hunt is: "<<maximum;
getch();
}
#include<iostream.h>
#include<conio.h>
#include<math.h>
main()
{
const int N=256;
int A[N],n,i,x;
cout<<"enter n:";
cin>>n;
x=9*pow(10,n-1);
A[0]=pow(10,n-1);
for(i=1;i<x;i++)
A[I]=A[i-1]+1;
for(i=0;i<x;i++)
cout<<A[I]<<endl;
getch();
}