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

# Calculator

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

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

Views: 560

.

+ 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

+ ! ✨ ░S░I░N░G░E░R liked 2.O's discussion Dying from Curiosity :P :P
2 minutes ago
+ ! ✨ ░S░I░N░G░E░R liked 2.O's discussion Kab Talak Dar Pay Baitay Rahna Hai
4 minutes ago
2.O replied to 2.O's discussion Dying from Curiosity :P :P
4 hours ago
2.O replied to 2.O's discussion Dying from Curiosity :P :P
4 hours ago
2.O posted discussions
4 hours ago
5 hours ago
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked 彡ＪＫ彡 ❤️'s discussion پچھتاوے تو تمہارے لئے ہیں
5 hours ago
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked 彡ＪＫ彡 ❤️'s discussion چھٹی کی درخواست
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked + "Jɨyą's discussion Aksar...!
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked + "Jɨyą's discussion Saaya...!
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked + "Jɨyą's discussion Cheekh.....!
5 hours ago
5 hours ago
+ ! ! ! ! Ⲙehar Roman replied to october's discussion poetry
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked Zain Kazimi's discussion self poetry
5 hours ago
+ ! ! ! ! Ⲙehar Roman liked october's discussion poetry
5 hours ago
5 hours ago
6 hours ago
+ ! ! ! ! Ⲙehar Roman liked ++"S.M.TALHA"++'s blog post سر پلیز....
6 hours ago

1

2

3