Guest User

Untitled

a guest
Nov 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. void exc15(void) {
  3. int num,i,j;
  4. printf("escolha um numeron");
  5. scanf("%d",&num);
  6. for(i=1;i<num;i++) {
  7. for(j=2;j<i;j++) {
  8. if (i%j==0) {
  9. printf("%dn",i);
  10. break;
  11. }
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment