We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# Calculator

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 578

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

### Replies to This Discussion

<HTML>
<TITLE>Calculator</Title>

<Script Type="text/javascript">

function Validate(e) {
var ucode=e.charCode? e.charCode : e.keyCode;
if (ucode!=8) { // if the key isn't the backspace key (which we should allow)
if (ucode<48||ucode>57) // if not a number
return false; // disable key press
} // End of IF
} // end of validate function

// ==================================================================

var num1, num2; // Global variables
if (document.frmCalc.txtScr.value == "")
return;}
num1 = document.frmCalc.txtScr.value;
document.frmCalc.txtScr.value="";
document.getElementById("btnEqual").disabled = false;
}

// ===================================================================

/*

function funEqual() {
if (document.frmCalc.txtScr.value == "")
return;}
num2 = document.frmCalc.txtScr.value;
document.frmCalc.txtScr.value = (num1*1)+(num2*1);
document.getElementById("btnEqual").disabled = true;
}
*/

// ===================================================================

function funClear() {
document.frmCalc.txtScr.value="0";
document.getElementById("btnEqual").disabled = false;
}

</Script>

<BODY>
<H1 Align="center"><B><U> Calculator </U></B></H1>
<Form Name="frmCalc">

<TABLE Align="center" Border="2">

<TR><TD><Input Type="Text" Name="txtScr" Value="0" Align="left" onKeypress="return Validate(event)"></TD></TR>
<Input Type="Button" Name="btnClear" Value=" C " onClick="funClear()">
</TD>
</TR>
<TR><TD><Input Type="Button" Name="btnEqual" Value=" = " onClick="funEqual()"></TD></TR>

</TABLE>

</Form>
</BODY>
</HTML>

Solution may , 0, 56, 67 saray num ka calculator bnana kia ?

yeh calculator kisi bhi makhsoos number k

## Latest Activity

24 minutes ago
Muhammad Ahtisham Butt posted a discussion

### Log Kehte Hain K Tera Dost Bewafa Hai

24 minutes ago
Alone Struggler liked иαвєєℓ αнмє∂'s discussion !!!! Yaad !!!!
24 minutes ago
Alone Struggler liked zohaib iftikhar's discussion ...* JANNAT K SULTAN ...*
25 minutes ago
25 minutes ago
27 minutes ago
29 minutes ago
30 minutes ago
31 minutes ago
31 minutes ago
37 minutes ago
38 minutes ago

1

2

3