Input and Output

Sort by

recency

|

750 Discussions

|

  • + 0 comments

    My C++ code

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

    Read 3 numbers from stdin and print their sum to stdout

  • + 0 comments

    i have been facing in making my website better algorithem and failed due to incomplete knowdge in coding. can anyone visit my website Modgila and suggest me a solution for this.

  • + 0 comments

    Here is problem solution - HackerRank Input and Output problem solution in C++