Ishu_15hu

Saimum

Jan 10th, 2021
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. void cas(int i) {
  5.     cout<<"Case "<<i<<":";
  6. }
  7.  
  8. typedef vector<int> vi;
  9. typedef vector<long long> vll;
  10. typedef pair<int,int> pii;
  11. typedef vector< pii > vii;
  12.  
  13. #define ll          long long
  14. #define ff          first
  15. #define ss          second
  16. #define pb          push_back
  17. #define mkp         make_pair
  18. #define sz          size()
  19. #define dsc         greater<int>()
  20.  
  21. #define fef(i,a,b)    for(int i=a;i<b;i++)
  22. #define feb(i,a,b)    for(int i=a;i>=b;i--)
  23. #define all(a)      a.begin(),a.end()
  24. #define mem(a,b)    memset(a,b,sizeof(a))
  25. #define pi          2*acos(0.0)
  26. #define End         return 0;
  27.  
  28. #define scan1(a)    scanf("%d",&a)
  29. #define scan2(a,b)  scanf("%d %d",&a,&b)
  30. #define scan3(a,b,c)  scanf("%d %d %d",&a,&b,&c)
  31. #define scanl(a)    scanf("%lld",&a)
  32. #define scanll(a,b) scanf("%lld %lld",&a,&b)
  33. #define scanlll(a,b,c) scanf("%lld %lld %lld",&a,&b,&c)
  34.  
  35. #define print1(a)    printf("%d",a)
  36. #define print2(a,b)  printf("%d %d",a,b)
  37. #define print3(a,b,c)  printf("%d %d %d",a,b,c)
  38. #define printl(a)    printf("%lld",a)
  39. #define printll(a,b) printf("%lld %lld",a,b)
  40. #define printlll(a,b,c) printf("%lld %lld %lld",a,b,c)
  41.  
  42. #define MAXN        1000000007
  43. #define INF 0x3f3f3f3f
  44. bool sbs(const pii &a, const pii &b) {
  45.     return (a.second < b.second);
  46. }
  47. //int dx[]={+1,-1,+0,+0};///Four Directions
  48. //int dy[]={+0,+0,+1,-1};///Four directions
  49. //int dx [] = {+1,-1,+0,+0,-1,-1,+1,+1};///Eight Directions
  50. //int dy [] = {+0,+0,+1,-1,+1,-1,-1,+1};///Eight Directions
  51.  
  52. //int mark[10007];vi prime;void seive(){for(int i=2;i<10000;i++){if(mark[i]==0){prime.pb(i);for(int j=i+i;j<=10000;j+=i)mark[j]=1;}}}
  53.  
  54. //freopen("input.txt", "r", stdin);
  55.  
  56. int main()
  57. {
  58.    //ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  59.    cout<<"Enter starting and ending number respectively: "<<endl;
  60.    long long start, endd; cin>>start>>endd;
  61.    for(int i=start; i<=endd; i+=4){
  62.     cout<<i<<endl;
  63.     if(i+1>endd) break;
  64.     cout<<i+1<<endl;
  65.    }
  66.  
  67.    End;
  68. }
  69.  
RAW Paste Data