How to add three numbers in C++

1 Answer

0 votes
#include <iostream>

int main()
{
    int a, b, c;

    a = 873;
    b = 91;
    c = 12;
    
   int sum = a + b + c ;

   std:: cout << sum;
   
   return 0;
}




/*
run:

976

*/

 



answered Jun 14, 2021 by avibootz
...