Program to add 2 integer using function Post author:admin Post published:July 5, 2020 Post category:c++ Post comments:0 Comments #include #include main() { int a,b,c; clrscr(); cout<>a; cout<>b; int sum(int,int); c = sum(a,b); cout<<"n Addition of "<<a<<" and "<<b<<" is <<c; getch(); } int sum(int x,int y) { int z; z=x+y return(z); } Tags: c+ You Might Also Like Program to implement the concept of constructor. July 5, 2020 Write a program to implement the concept of pointers. July 5, 2020 Write a program to add two integer with the help of prototyping and saving in CPP extension. July 5, 2020 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.
Write a program to add two integer with the help of prototyping and saving in CPP extension. July 5, 2020