#include<stdio.h>
int main()
{
int a,b,c,d;
for(a=1; a<5; a++)
{
for(b=1; b<5; b++)
{
for(c=1; c<5; c++)
{
for(d=1; d<5; d++)
{
if(!(a==b a==c a==d b==c b==d c==d))
printf("dd\n",a,b,c,d);
}
}
}
}
return 0;
}
Chat with our AI personalities
#include<stdio.h>
int main()
{
int a,b,c,d;
for(a=1; a<5; a++)
{
for(b=1; b<5; b++)
{
for(c=1; c<5; c++)
{
for(d=1; d<5; d++)
{
if(!(a==b a==c a==d b==c b==d c==d))
printf("dd\n",a,b,c,d);
}
}
}
}
return 0;
}
Oh, what a lovely request! In FoxPro, you can create a program to print all prime numbers from 1 to 100 by using a loop to check each number for divisibility only by 1 and itself. If it meets this criteria, you can print it out on the screen. Remember, every number is unique and special, just like a happy little tree in a vast forest.
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
While x<1000 print x x=x+1 wend
In BASIC: 10 INPUT X: IF X = 999 THEN STOP ELSE PRINT X; 20 IF X/2 = INT(X/2) THEN PRINT "EVEN" ELSE PRINT "ODD" 30 GOTO 10
cls input "enter a no"; num if num mod 14= num then print "no is divisible" else print "not divisible" end if end