navbar brand

Question

2 Apr 2023, Sun
  • Applications
    Dictionary
    Quiz
    Converter
  • User Profile
    • image profile

      Hello Guest 👋 !

      Login Register
UI
Namaste, Guest Become a member?
  • Login
  • Register
  • Ask Question
  • Questions

    • Ask Question
    • All Subjects
    • Accountancy
    • Astronomy
    • Biology
    • Business Studies
    • Chemistry
    • Computer
    • Digital Marketing
    • Economics
    • Engineering Aptitude
    • English
    • Entertainment
    • Environment
    • Geography
    • Geology
    • Health
    • History
    • Language
    • Math
    • Nepali
    • Optional Math
    • Physics
    • Population
    • Social Studies
    • Super Natural
    • The Heritage of Words
  • Quick Access

    • Home
    • Questions
    • Profile
  • Exam Capsule

    • All Entrances
    • IOE Entrance
    • SEE Model Set
  • MCQ

    • GK Practice
    • Categories
    • Exam
    • Submit Quiz
  • Articles

    • Essay Contest
    • Latest
    • Health
    • Education
    • Sports
    • Abroad
    • Politics
    • Environment
    • Technology
  • Institutes

    • All Institutes
    • Schools
    • High Schools
    • Colleges
    • Tuition Centers
    • Library
  • Notices

    • Admission Open
    • Result
    • Loksewa
  • Top Topics

    • Electricity
    • Computer Fundamentals
    • Pressure
    • Heat
    • Waves
Toolbox
  • Dictionary
    Dictionary
  • Calculator
    Calculator
Ramos Sapkota
3 years ago Grade -10 (SEE) Computer

input three number and find out greatest among them using QBasic Programming

Please help me write a program in QBASIC to find greatest numbers among 3 numbers. 

Share My Answer
  • input three number and find out greatest among them using QBasic Programming
2

2 Answers

Pathshala Nepal
3 years ago Answer Link Tribhuvan University > Institute of Science and Technology > B.Sc. (CSIT)

If you don't want to use SUB Procedure and Array, you can use this code

CLS

INPUT " Enter first number ";A

INPUT"Enter the second number";B
 
INPUT"Enter the third number";C
 
if  A>B THEN G = A ELSE G = B
if  C>G THEN G = C
 
PRINT " The Greatest Number is :", G
END
 

 

3

Comments

Ramos Sapkota
3 years ago Answer Link Tribhuvan University > Faculty of Humanities and Social Sciences > BCA (Bachelor in Computer Application)
Using SUB Procedure:
 
DECLARE SUB Greatest(A,B,C)
CLS
INPUT"Enter the first number";A
INPUT"Enter the second number";B
INPUT"Enter the third number";C
CALL Greatest (A,B,C)
END
SUB Greatest(A,B,C)
IF A >B AND A > C THEN
PRINT"A is greatest"
ELSEIF B > A AND B > C THEN
PRINT"B is greatest"
ELSE
PRINT"C is greatest"
ENDIF
END SUB
1

Comments

Topics from Computer

System Development Concept 2 Artificial Intelligence 4 file handling 44 Introduction to Digital Marketing 0 Modular programming 50 Number System 1 Object-Oriented Programming (OOP) 8 Office Personnel 1 Database 4 Q basic programming 72 Computer Fundamentals 141

Related Questions

  • Who is a system analyst? What are the characteristics of system analysts? 1

  • What are the different stages of the system development life cycle (SDLC) 1

  • What are cyber law and Artificial Intelligence? Explain. 1

  • What are the applications of AI? Explain. 1

  • What do you understand about AI? What are the negative and positive aspects of AI in society? 1

  • How does an AI application work? Can a computer really think with the aid of AI? 1

  • Explain class and Object in Object-Oriented Programming. 1

  • What is the importance of OOP? 1

  • What is procedural programming? Explain. 1

  • What are the advantages and disadvantages of OOP? 1

Popular Tags: 7 Days

  • development
  • political change
  • mediterranean climate region
  • winter rainfall
  • compound interest
  • Advantages of saving
  • egg sinks in pure water but floats in the salt solution
  • Cooperative
  • principles
  • functions of Legislature
  • secular
  • secular country
  • secularism
  • secularism in nepal

Upcoming MCQs

MCQ Online Exam

Computer Fundamental Multiple Choice Questions Exam Free

  • 2022-03-20 12:45
  • 60 Mins
  • 12 Enrolled
  • 25 Full Marks
  • 10 Pass Makrs
  • 25 Questions

Search

Quick Links
  • About Us
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Advertise With Us
  • FAQs
Our Products
  • Educational Institutes
  • Question & Answers Community
  • Online Course/Notes
  • Educational Utilities
  • Social Networking
  • Educational Store
Contact Us
Address:
Pryag Pokhari, Lagankhel, Lalitpur Nepal
Email:
[email protected]
Phones:
9745619281 or +977-9840704915

PathshalaNepal.com is a Registered Company of E. Pathshala Pvt Ltd Nepal. Registration number : 289280

© 2020. All right Reversed.E. Pathshala Pvt Ltd