Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  88
Language: C/C++
Code:
#include <iostream>
 
using namespace std;
float Rgeneral(float R1,float R2);
 
void out(float R){
    cout<<"R12 = "<<R;
}
 
int main()
{
    setlocale(LC_ALL, "rus");
    float r1,r2;
    cout<<"Enter R1 - ";
    cin>>r1;
    cout<<"Enter R2 - ";
    cin>>r2;
 
    out(Rgeneral(r1,r2));
 
    return 0;
}
 
float Rgeneral(float R1,float R2){
   return R1+R2;
}
          
Comments: