Showing posts with label printf() function. Show all posts
Showing posts with label printf() function. Show all posts

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;
}