Solution for Codechef FLOW001 | Add Two Numbers

Hello Programmers,

The solution for codechef Add Two Numbers problem is given below.

Problem Link:- https://www.codechef.com/problems/FLOW001/

/*
*   Author:- Rahul Malhotra
*   Source:- Programming Vidya
*   Description:- Solution for Codechef Add Two Numbers problem
*   Problem Link:- https://www.codechef.com/problems/FLOW001/
*   Website:- www.programmingvidya.com
*/

#include<iostream>
using namespace std;

int main()
{
    // * Initializing variables
    int t, a, b;
    cin>>t;

    // * Executing each test case one by one
    while(t--)
    {
        // * Accepting two numbers
        cin>>a>>b;

        // * Displaying the result by adding two numbers
        cout<<a+b<<endl;
    }

    return 0;
}

Happy Coding..!!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s