int gd=0,gm;
initgraph(&gd,&gm,"");
\\Here I wrote my graphical functions
closegraph();
using namespace std;
using std::cout;
using std::cin;
#include<iostream.h>
#include<conio.h>
unsigned long isprime(unsigned long n)
{
unsigned long i,flag=1;
for(i=2;i<=n/2;i++)
if(n%i==0)
flag=0;
return flag;
}
unsigned long goldbach(unsigned long n,unsigned long prime[1000])
{
unsigned long flag=0,i,j;
for(i=0;prime[i]<n;i++)
for(j=0;prime[j]<n;j++)
if(n==prime[i]+prime[j])
flag=1;
return flag;
}
void main()
{
unsigned long n,prime[1000],i,j=0,flag=1;
cout<<"Enter n:";
cin>>n;
for(i=2;i<n;i++)
if(isprime(i))
{
prime[j]=i;
j++;
}
for(i=4;i<n;i+=2)
if(goldbach(n,prime)==0)
flag=0;
if(flag==1)
cout<<"Yes!";
else
cout<<"No!";
getch();
}
using namespace std;
using std::cout;
using std::cin;
#include<iostream.h>
#include<conio.h>
using namespace std;
using std::cout;
using std::cin;
void main()
{
cout<<"Hello World";
cin.get
}
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,i=0,j,x[100],y=0,z[100];
char ch=0;
cout<<"Enter a,b:";
cin>>a>>b;
cout<<"Enter the number:";
while(ch!=13)
{
ch=getch();
if((ch<='9')&&(ch>='0'))
{
x[i]=ch-48;
cout<<x[i];
i++;
}
}
for(j=0;j<i;j++)
y+=x[j]*pow(a,i-j-1);
j=0;
while(y>0)
{
z[j]=y%b;
y/=b;
j++;
}
cout<<endl;
for(i=j-1;i>=0;i--)
cout<<z[i];
getch();
}
#include<iostream.h>
#include<conio.h>
#include<math.h>
using namespace std;
using std::cout;
using std::cin;
int main()
{
int a,b,i=0,j,x[100],y=0,z[100];
char ch=0;
cout<<"Enter a,b:";
cin>>a>>b;
cout<<"Enter the number:";
while(ch!=13)
{
ch=getch();
if((ch<='9')&&(ch>='0'))
{
x[i]=ch-48;
cout<<x[i];
i++;
}
}
for(j=0;j<i;j++)
y+=x[j]*pow(a,i-j-1);
j=0;
while(y>0)
{
z[j]=y%b;
y/=b;
j++;
}
cout<<endl;
for(i=j-1;i>=0;i--)
cout<<z[i];
getch();
return 0;
}
using namespace std;
using std::cout;
using std::cin;
#include<iostream.h>
#include<conio.h>
using namespace std;
using std::cout;
using std::cin;
void main()
{
cout<<"Hello World";
cin.get
}