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

Looking For Something at vustudents.ning.com? Click Here to Search

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 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?


See Your Saved Posts Timeline

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)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

<HTML>
<HEAD>
<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
function funAdd() {
if (document.frmCalc.txtScr.value == "")
{ alert("Enter A correct number.");
return;}
num1 = document.frmCalc.txtScr.value;
document.frmCalc.txtAdd.value= num1 + "+";
document.frmCalc.txtScr.value="";
document.getElementById("btnAdd").disabled = true;
document.getElementById("btnEqual").disabled = false;
}

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

/*

function funEqual() {
if (document.frmCalc.txtScr.value == "")
{ alert("Enter A correct number.");
return;}
num2 = document.frmCalc.txtScr.value;
document.frmCalc.txtScr.value = (num1*1)+(num2*1);
document.frmCalc.txtAdd.value = "";
document.getElementById("btnAdd").disabled = false;
document.getElementById("btnEqual").disabled = true;
}
*/

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

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

</Script>
</HEAD>

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

<Center><Input Type="Text" Name="txtAdd" Value=""></Center>
<TABLE Align="center" Border="2">

<TR><TD><Input Type="Text" Name="txtScr" Value="0" Align="left" onKeypress="return Validate(event)"></TD></TR>
<TR><TD><Input Type="Button" Name="btnAdd" Value=" + " onClick="funAdd()">
<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

RSS

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
Azam Khan Buzdar replied to + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Drama serial
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked 彡JK彡 ❤️'s discussion پچھتاوے تو تمہارے لئے ہیں
5 hours ago
+ ! ✨ ░S░I░N░G░E░R replied to 彡JK彡 ❤️'s discussion چھٹی کی درخواست
5 hours ago
+ ! ✨ ░S░I░N░G░E░R liked 彡JK彡 ❤️'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
+ ! ✨ ░S░I░N░G░E░R liked zohaib iftikhar's discussion ...* KIA KOI ALLAH PE AHSAN KR SAKTA HAI??? ...*
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
+ ! ✨ ░S░I░N░G░E░R replied to Zain Kazimi's discussion self poetry
5 hours ago
+ ! ! ! ! Ⲙehar Roman liked ++"S.M.TALHA"++'s blog post ابا جی ڈیڈی اور پاپا میں زمین اور آسمان کا فرق ہوتا ہے
6 hours ago
+ ! ! ! ! Ⲙehar Roman liked ++"S.M.TALHA"++'s blog post سر پلیز....
6 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service