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


+ Link For Assignments, GDBs & Online Quizzes Solution


+ 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

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.


+ How to Follow the New Added Discussions at Your Mail Address?

+ 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: 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)

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

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion


<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.");
num1 = document.frmCalc.txtScr.value;
document.frmCalc.txtAdd.value= num1 + "+";
document.getElementById("btnAdd").disabled = true;
document.getElementById("btnEqual").disabled = false;

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


function funEqual() {
if (document.frmCalc.txtScr.value == "")
{ alert("Enter A correct number.");
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.txtAdd.value = "";
document.getElementById("btnAdd").disabled = false;
document.getElementById("btnEqual").disabled = false;


<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()">
<TR><TD><Input Type="Button" Name="btnEqual" Value=" = " onClick="funEqual()"></TD></TR>



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

yeh calculator kisi bhi makhsoos number k


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

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