fork download
  1. #include <iostream>
  2. using namespace std;
  3. void addfunction(int a,int b){
  4. cout<<"The sum is:"<<a+b;
  5. }
  6.  
  7. int main() {
  8. addfunction(20,30);
  9.  
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
The sum is:50