find leap year in qbasic
नमस्कार दोस्तों
आज हम QBasic में Leap ईयर को कैसे पता करे इसका प्रोग्राम बनाते हैं।
तो सबसे पहले आप Qbasic Program स्टार्ट करके यह प्रोग्रमम कोड टाइप करे।
DIM X, Y, Z, YEAR
INPUT "PLEASE INPUT YEAR"; YEAR
X = YEAR MOD 4
Y = YEAR MOD 100
Z = YEAR MOD 400
IF ((X = 0 AND NOT (Y = 0)) OR Z = 0) THEN
PRINT "THIS IS A LEAP YEAR"; YEAR
ELSE
PRINT "THIS IS NOT LEAP YEAR"; YEAR
END IF
END
INPUT "PLEASE INPUT YEAR"; YEAR
X = YEAR MOD 4
Y = YEAR MOD 100
Z = YEAR MOD 400
IF ((X = 0 AND NOT (Y = 0)) OR Z = 0) THEN
PRINT "THIS IS A LEAP YEAR"; YEAR
ELSE
PRINT "THIS IS NOT LEAP YEAR"; YEAR
END IF
END
Qbasic के अन्य program लिए कमेंट बॉक्स में लिखें।
पीडीऍफ़ में डाउनलोड करेने के लिए क्लिक करें।
2 Comments
This comment has been removed by the author.
ReplyDeleteIt's very useful blog post with informative and insightful content and i had good experience with this information. We, at the CRS info solutions ,help candidates in acquiring certificates, master interview questions, and prepare brilliant resumes.Find top Salesforce admin interview questions in 2020.
ReplyDeleteThese Salesforce developer interview questions are highly helpful in 2020. You can read these Salesforce lightning interview questions and Salesforce integration interview questions which are prepared by industry experts.