#include "funcs2.h" #include "funcs2.cpp" void main(void) { clrscr(); cout<<"This function works so : you give a number and it will return to \n" <<"the sum of the preceding numbers + the number . \n" ; cout<<"Please enter a number to use in an example !\n" ; int number,number1; cin>>number; cout<<"The sum of preceding numbers and the number itself is " << SumOfPrecedeNum(number)<<"\n"; cout<<"\nThis function will compute product of two numbers by adding \n"; cout<<"Please enter 2 numbers\n"; cin>>number>>number1; cout<<"The product of "<>number>>number1; cout<<"The result of: "<>first>>diff>>nMember; cout<<"The sum of this serie is "<>height>>width; cout<<"Here it is !\n"; Kefel(height,width); double lim1,lim2,acc; cout<<"The next function will find the integral of X^2 !\n"; cout<<"We will use the trapezoid numerical method\n"; cout<<"Integral=(h/2)*sum(f(x)+f(x+h)) and the Error = max(f\"(x))*h^2\n"; cout<<"Give me the limits of the integral ( 2 numbers) and the accuracy \n"; cin>>lim1>>lim2>>acc; cout<<"The integral = "<< IntegralT(lim1,lim2,acc)<<"\n"; int hours ,minutes,seconds,h1,m1,s1; int* Time; int T=0; Time=&T; cout<<"This program will find difference between 2 times you give\n"; cout<<"Please give me hours ,minutes,seconds of later time\n"; cin>>hours>>minutes>>seconds; cout<<"Please give me hours ,minutes,seconds of earlier time\n"; cin>>h1>>m1>>s1; Difftime(hours,minutes,seconds,h1,m1,s1,Time); cout<<"The difference between those two times is \n" <<*Time<<"hours "<< *(Time+1)<<" minutes "<< *(Time+2)<<" seconds\n"; int numbers[5]; cout<<"The next program will manipulate with 5 numbers you give!\n"; cout<<"Please give me those 5 numbers\n"; for(int i=0;i<5;i++) cin>>numbers[i]; cout<<"The maximum is "<>number; if(PrimeNum(number)) cout<<"The number is a Prime Number\n"; else cout<<"The number is not a Prime Number\n"; long LNum; cout<<"This program will compute the sum of a number's digits\n"; cout<<"Please give me a number\n"; cin >> LNum; cout<<"The sum of digits of this number is "<>height>>width; cout<<"Area of square = "<>number; cout<<"Area of circle = "<>d>>m>>y; cout<<"The number of days is "<>number; cout<<"\nThe factorial is "<>base>>pow; cout<<"\nThe result is "<