'cmp file'
<aura:component >
    
    <aura:attribute name="aval" type="Integer"/>
    <aura:attribute name="bval" type="Integer"/>
    <aura:attribute name="result" type="Integer"/>
    
    
    <lightning:card title="Calculator" iconName ="standard:lead">
        <aura:set attribute="actions">
            <lightning:buttonGroup>
                <lightning:button label="Add" onclcik="{!c.Addme}"/>
                <lightning:button label="Subtract" onclick="{!c.Subme}" />
                <lightning:button label="multiply" onclick="{!c.Mulme}" />
            </lightning:buttonGroup>
        </aura:set> 
        
        
        <lightning:input label="enter the first NO" value="{!v.aval}"/>
        <lightning:input label="enter the second NO" value="{!v.bval}"/>
        <lightning:input label="result" value="{!v.result}"/>
        
   </lightning:card>
</aura:component>
SO basically the above one is my component code 
'Controller code :::::'
'''
({
    Addme : function(component) 
    {
        var A=Component.get("v.aval");
        var B=Component.get("v.bval");
        var C=a+b;
        console.log(c);
        Component.set("v.result",C);
    },
    Subme : function(component) 
    {
        var A=Component.get("v.aval");
        var B=Component.get("v.bval");
        var C=a-b;
        Component.set("v.result",C);
    },
     Mulme : function(component) 
    {
        var A=Component.get("v.aval");
        var B=Component.get("v.bval");
        var C=a*b;
        Component.set("v.result",c);
    }
   
})
here the above one is the controller code where i defined the fucntions for add,sub and mul
'application :'
<aura:application extends="force:slds" >
    <c:v5testing/>
</aura:application>
Here this is my application code where in im calling on the whole it is simple add problem using attributes and input concept in lightning .
PLease help me out I get error in this way --> This page has an error. You might just need to refresh it. Action failed: c:v5testing$controller$Addme [Component is not defined] Failing descriptor: {c:v5testing$controller$Addme}