Average of two numbers














































Average of two numbers



#include<iostream.h>
 int main()
{
   int a=10, b=15, c=a+b; 
   float d=c/2; 
   cout<<"Addition of two numbers :"          <<c;
   cout<<"Average of two numbers :"          <<d; 
   return 0;
}


More Articles of Chappidi Nagamani:

Name Views Likes
Average of two numbers 288 12
Average of two numbers 76 24

Comments