Home > Back-end > C language output you are prime Numbers all three digits, for advice
C language output you are prime Numbers all three digits, for advice
Time:11-20
Won't do it, pure of new, how can not do a prime number
CodePudding user response:
Prime generally refers to prime, it is to point to in a natural number greater than 1, besides 1 and itself, there will be no other factor of natural Numbers, 2 hc-positie
Fyi:
# include & lt; stdio.h>
Int main (void) { Int a [4]={2, 3, 5, 7}; Int I, j, k;
for(i=0; i<4. I++) { for(j=0; J<4. J++) { for(k=0; K<4. K++) { Printf (" % d % d % d \ n ", a [I], a [j], a [k]); } } }
return 0; }
CodePudding user response:
From big to small, row shows the number 10,
# include & lt; stdio.h>
Int main (void) { Int a [4]={2, 3, 5, 7}; Int I, j, k, c=0;
For (I=3; I>=0; I -) { For (j=3; J>=0; J -) { For (k=3; K>=0; K -) { C + +; Printf (" % d % d % d % c ", a [I], a [j], a [k], 10==0 c %? '\ n' : '\ t'); } } }