#include
#include
int main()
{
int i,j,k,l,m,n,p,q,temp,fno,secno,thirdno;
int arr[1][9];
cout<<"---------------------------------------ABRAR TARIQ-------------------------------"<
cout<<"Here are the all possible combinations of the triad numbers between 1 to 1000 ! cheers !"<
int a=0;
for(i=100;i<=1000;i++)
{
for(j=i+1;j<=1000;j++)
{
if(j==2*i)
{
fno=i;
secno=j;
}
if(j==3*i)
{
thirdno=3*i;
}
}
k=fno/100;
temp=fno%100;
l=temp/10;
m=temp%10;
arr[0][0]=k;
arr[0][1]=l;
arr[0][2]=m;
k=secno/100;
temp=secno%100;
l=temp/10;
m=temp%10;
arr[0][3]=k;
arr[0][4]=l;
arr[0][5]=m;
k=thirdno/100;
temp=thirdno%100;
l=temp/10;
m=temp%10;
arr[0][6]=k;
arr[0][7]=l;
arr[0][8]=m;
for(n=0;n<1;n++)
{
for(p=0;p<9;p++)
{
for(q=p+1;q<9;q++)
{
if(arr[n][p]==arr[n][q]arr[n][p]==0arr[n][q]==0)
{
a=1;
}
if(a==1)
break;
}
if(a==1)
{
a=0;
break;
}
}
if(p==9&&q==9&&a==0)
{
cout<<<","<<<","<<<
cout<<"---And---"<
}
}
return 0;
}
how to write a program that counts automorphic number from 1 to 999
12
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
write a lex program to delete space from the program
Reference:http:cprogramming-bd.com/c_page2.aspx# strange number
k
how to write a program that counts automorphic number from 1 to 999
12
Call the numbers 'A' and 'B'.Then write:5A = 6B
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
write a c program to accept a number and generate a square root cube and exponential values
substracion of any two number program in c
nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.
write a lex program to delete space from the program
278.8 Hours
write an assembly language program to find sum of N numbers