Advertisement
evgenko

S_Mavr_lab7_ex1

Dec 14th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. int main() {
  3.     for (int i=300;i<=500;i++){
  4.         if ((i%10 == (i/10)%10)||((i/10)%10==(i/100)%10)){
  5.             printf("%d \n",i);
  6.         }
  7.     }
  8.     return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement