
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MAX_LONG 2147483647
#define PI 3.1415926536
char buf[80];
void output(char *);
void OUTPUT(long double &);
……………………………………
void main(){
int gdriver = DETECT, gmode, errorcode;
int i ,run1=0, run2=0;
int a,k=0,l,i1=0,i2,k1=0 ,length , result=0,th=0,step;
int d[30] , Back=0 ,index = 0, NamePoint=0,ind=0,mcl=0;
long double p=0, b[2] = {0,0}, t ;
char NumBer[30],*num[30],ch,buf[80];
/* initialize graphics mode */
initgraph(&gdriver, &gmode, “C:\\TC\\BGI”);
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf(“Graphics error: %s\n”, grapherrormsg(errorcode));
printf(“Press any key to halt:”);
getch();
exit(1); /* return with error code */
}
……………………………………
។ បង្ហាញថាក្រៅពី x=1 ជាឫសនៃសមីការនេះ នៅមានឫសមួយទៀតស្ថិតនៅចន្លោះ
និង 2 ។ រកលីមីតនៃឫសនោះ បើ
។
តាង
។
រួចគណនារក bn ជាអនុគមន៍នៃ n ។
ដែល a>0; b>0 ។ (១៥ ពិន្ទុ)