-
-
Save programmingfaster0226/485331c9036d743530a5b440d07a02e5 to your computer and use it in GitHub Desktop.
programmingfaster.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
float readData(); | |
float addData(float,float,float); | |
void showresult(float); | |
// float a,b,c,sum; | |
int main() | |
{ | |
float sum; | |
sum=readData(); | |
showresult(sum); | |
return 0; | |
} | |
float readData() | |
{ | |
float result,a,b,c; | |
cout<<"enter the numbers"; | |
cin>>a>>b>>c; | |
result=addData(a,b,c); | |
return result; | |
} | |
float addData(float x,float y, float z) | |
{ | |
return(x+y+z); | |
} | |
void showresult(float sum) | |
{ | |
cout<<"summation:"<<sum; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment