Advertisement
kamandos

HomeWork

Jul 5th, 2022
739
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None
  1. #include <stdio.h>
  2. int main() {
  3.     int x, i;
  4.     printf("Input an integer: ");
  5.     scanf("%d", &x);
  6.    
  7.     for(i = 1; i <= 100; i++)
  8.     {
  9.         if((i%x) == 3) {
  10.             printf("%d\n", i);
  11.         }
  12.     }
  13.     return 0;
  14. }
Advertisement
RAW Paste Data Copied
Advertisement