Write a program in C++ to add two nos using function
#include<iostream.h>
int add(int,int); void main() { int x,y,z; cout << "enter two integer values to add them"<<endl; cin >> x >> y; z=add(x,y); cout << "addition is : "<<z; } int add(int a,int b) { return (a+b); } |