से अधिक है, तो मैं प्रोग्रामिंग के लिए नया हूं और सिंट ओवरफ़्लो त्रुटि के साथ कुछ परेशानी में भाग रहा हूं। जब भी मूल्य 100,000+ तक पहुंच जाता है तो मुझे एक सिंट ओवरफ्लो त्रुटि मिलती है। यह प्रोग्रामिंग कक्षा के अपने परिचय में एक अभ्यास अभ्यास था। जहां तक मैं देख सकता हूं मैंने इसे ठीक से कोड किया था कि यह अभ्यास में कैसे किया गया था, लेकिन अभ्यास 300,000 के रूप में मूल्यों का उपयोग करके दिखाता है। क्या कोई संभवतः समझा सकता है कि मैं क्या गलत कर सकता हूं?सिंट ओवरफ़्लो त्रुटि जब मान 100,000+
<script language="VBscript">
Option Explicit
DIM numberofshifts, totalshift1, totalshift2, _
totalshift3, grandtotal, shiftaverage
numberofshifts=3
totalshift1 = Inputbox("How many widgets during the first shift")
totalshift2 = Inputbox("How many widgets during the second shift")
totalshift3 = Inputbox("How many widgets during the third shift")
grandtotal = cint(totalshift1) + totalshift2 + totalshift3
shiftaverage = grandtotal/numberofshifts
Document.write "The Total of the Three Shifts is " & grandtotal
Document.write "<br>The Average of the Three Shifts is " & shiftaverage
</script>
संदर्भ के लिए: [वीबीस्क्रिप्ट डेटा प्रकार] (http://msdn.microsoft.com/en-us/library/9e7a57cf%28VS.84%29.aspx) –