Thursday, December 31, 2020

Input and Output | Hackrrank | C++ | Solution



Problem : https://www.hackerrank.com/challenges/cpp-input-and-output/problem

Solution : #include <cmath>

#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int main() {
    /* Enter your code here. Read input from STDIN. Print output to STDOUT */   
    int a , b , c;
    cin>>a>>b>>c;
    int sum = 0;
    sum = a + b + c;
    cout<<sum;
    return 0;
}

No comments:

Post a Comment