nicecat12345678 nicecat12345678
  • 31-07-2022
  • Mathematics
contestada

How many three-digit positive integers have three different digits and at least one prime digit?

Respuesta :

Arjinoodles
Arjinoodles Arjinoodles
  • 31-07-2022

Answer:

252

Step-by-step explanation:

using a brute force method in c++

#include <stdio.h>

int main(){

int a, b, c, n = 0;

for(a = 1; a <= 9; a++)

 for(b = 0; b <= 9; b++)

  for(c = 0; c <= 9; c++)

   if((a==3 || b==3 || c==3)) n++;

printf("%d\n", n);

}

Answer Link

Otras preguntas

what are 'chinese whispers'?
What is the best way to promote healthy brain development for infants and toddlers?
Find an equation of a line that comes close to the points listed in the table. X|y 6|8 10|13 12|15 16|18 18|21
what does it mean to 'get it in the neck'?
what are some commonly misused words?
Vicki puts 10 books on a shelf.The 10 books take up 28 centimeters.What is the mean (average) thickness of her books?= 2.8 cmThe shelf is 120 centimeters long.V
what does 'cutting off the nose to spite the face' mean?
what is the role of connotation in literature?
what is a working title?
what are urban legends?