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

Aiman liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Computer Science
19 minutes ago
Aiman replied to Rumz zahra's discussion پھر یوں ہوا
46 minutes ago
Aiman liked Rumz zahra's discussion پھر یوں ہوا
51 minutes ago
Aiman liked 彡Ｆａｒｉａ彡 ❤️'s discussion #Skin Care_#Beauty Tips
54 minutes ago
1 hour ago
+++A++R+++ liked Alone Struggler's discussion Exam's morning...
1 hour ago
zeeshan ali, Muhammad Adeel Anjum and mansoor joined Virtual University of Pakistan
1 hour ago

1 hour ago

1 hour ago

1 hour ago
1 hour ago
1 hour ago

1

2

3