Created
April 23, 2017 14:55
-
-
Save patelmilanun/d181ef587d65c375727b17006e92bcc6 to your computer and use it in GitHub Desktop.
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; | |
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