MahmudulMaruf

Code · Faith · Curiosity

Blog Post

Beecrowd: 1866 - Bill

cpp �� 2023-08-16 12:20:44

cpp

Problem: 1866 - Bill

Solution:

#include<bits/stdc++.h>

using namespace std;

int main()

{

    int i, j, t, n, sum=0;

    cin>>t;

    while(t--)

    {

        cin>>n;

        if(n%2==0)

            cout<<"0"<<endl;

        else

            cout<<"1"<<endl;

        n=0;

    }

    return 0;

}

Post Visited: 450 times

Categories: cpp

0 Comments

    No comments yet. Be the first to comment!

Leave a comment

Captcha