Skip to content

Instantly share code, notes, and snippets.

@patelmilanun
Created April 23, 2017 14:55
Show Gist options
  • Save patelmilanun/d181ef587d65c375727b17006e92bcc6 to your computer and use it in GitHub Desktop.
Save patelmilanun/d181ef587d65c375727b17006e92bcc6 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
class C
{
public:
inline float convert(float kg)
{
return 2.205*kg;
}
};
int main() {
// your code goes here
C c;
float pound;
pound = c.convert(1);
cout<<"Pound of 1 kg is:"<<pound;
return 0;
}
======================================output================================================
Pound of 1 kg is:2.205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment