diff --git a/day8.cpp b/day8.cpp new file mode 100644 index 0000000..98cc42c --- /dev/null +++ b/day8.cpp @@ -0,0 +1,35 @@ +#include +#include +using namespace std; +float avg(float a,float b ) +{ + int result= (a+b)/2; + return result; +} +int add(int a,int b) +{ + int result=a+b; + return result; + +} //function prototype + +string welcom(string name) +{ + return "welcome " + name; +} +int main() +{ + float a; + float b; + cin>>a>>b; + float result=avg(a,b); + int getvalue=add(a,b); + string name="waris"; + string value=welcom(name); + cout<<"The value of Average is:"<