Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Divisibility :- #simple-math #ad-hoc-1 #basics
//gcc 5.4.0 #include <stdio.h> int main(void) { int t,n,x,y,i,j; scanf("%d",&t); for(i=1;i<=t;i++) { scanf("%d %d %d",&n,&x,&y); for(j=1;j<n;j++) { if(j%x==0 && j%y!=0) printf("%d ",j); } printf("\n"); } return 0; }
run
|
edit
|
history
|
help
0
PUNTEROS 1
C_141120_factorial02
Sizeof void
p20
8 trajo semal 4
B_141104_TresPuntosTriangulo
advanced string manipulation
Program 1 - 2D array and memory pointers
A_141201_MatrizTodosDistintos
C list