Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

oddNumbers2to100

mabwehz May 16th, 2018 (edited) 111 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     printf("==ODD NUMBERS BETWEEN 2 AND 100==\n");
  6.  
  7.     for (int i = 2; i <= 100; i++) {
  8.         if (i%2 == 1) {
  9.             printf("%d is an odd number\n", i);
  10.         }
  11.     }
  12.  
  13.     return 0;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top