December 23 topic 2

From , 3 Years ago, written in C, viewed 54 times.
URL https://pastebin.vip/view/2c6ae45a
  1. #include<stdio.h>
  2. int main() {
  3.   int a, b, n = 0;
  4.   for (a=101 ; a <= 200; a++) {
  5.     for (b=2 ; b <= a - 1; b++) {
  6.       if (a % b == 0)
  7.         break;
  8.     if (b == a - 1) {
  9.       printf("%d  ", a);
  10.       n++;
  11.     }
  12.     }
  13.     if (n % 10 == 0)
  14.       printf("\n");
  15.   }
  16. }
  17.  

Reply to "December 23 topic 2"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website