Reverse Order Using Sub And Function Procedure Qbasic
Reverse Order Using Sub And Function Procedure Qbasic Welcome to technical school, in this video you will learn to print reverse order of any string or number using sub end sub and function . Subroutines and functions are ways to break up your code into reusable 'lumps'. they allow the programmer reuse a large set of common instructions just by calling the appropriate procedure or function. for example, lets say you need to print multiple tables of values.
Reverse Order Using Sub And Function Procedure Qbasic Wap to reverse a string.pass string as parameter and return its reverse. wap to scan first string for the first occurrence of the substring in string second using strstr () function. Write a program to define a sub procedure sum (a,b) to display sum of any two numbers input by a user. 2. write a program to display area of a rectangle by using sub end sub. this program allows a user to input required data in the main module. 3. enter any two numbers and display its sum. 4. enter any two numbers and display its difference. 5. Test whether the given number is positive or negative. 2. accept any three different numbers and find the maximum number among them. 3. declare a sub procedure module to generate multiplication table of any non negative number, where number is passed as a parameter. 4. reversing word. 5. prime or composite. 6. armstrong or not. When you call the sub procedure, you can specify that an argument's value will not be changed by the procedure by enclosing the argument in parentheses. the program remline.bas illustrates calling sub procedures. to view or run this program, load remline.bas using the open command from the file menu.
Reverse Order Using Sub And Function Procedure Qbasic Test whether the given number is positive or negative. 2. accept any three different numbers and find the maximum number among them. 3. declare a sub procedure module to generate multiplication table of any non negative number, where number is passed as a parameter. 4. reversing word. 5. prime or composite. 6. armstrong or not. When you call the sub procedure, you can specify that an argument's value will not be changed by the procedure by enclosing the argument in parentheses. the program remline.bas illustrates calling sub procedures. to view or run this program, load remline.bas using the open command from the file menu. (e) write any two differences between function procedure and sub procedure. ans: 1. function must return a value. 1. sub procedure does not return a value. 2. a function is called by statement and expression method. 2. sub procedure is called by statement method i.e. call statement only. E reverse string sub.bas file metadata and controls code blame 12 lines (12 loc) · 255 bytes raw. Declares a basic subprogram. sub subprogram name [ (parameter list)] [static ] … end sub. subprogram name is the name of the subprogram (up to 40 characters). parameter list is a list of parameters in the following form: variable [ () ] [as typename] [, variable [ () ] [ as typename]]…. Explore sub procedure in class 10 qbasic with different question examples with their respective codes in simple way.
Reverse Order Using Sub And Function Procedure Qbasic (e) write any two differences between function procedure and sub procedure. ans: 1. function must return a value. 1. sub procedure does not return a value. 2. a function is called by statement and expression method. 2. sub procedure is called by statement method i.e. call statement only. E reverse string sub.bas file metadata and controls code blame 12 lines (12 loc) · 255 bytes raw. Declares a basic subprogram. sub subprogram name [ (parameter list)] [static ] … end sub. subprogram name is the name of the subprogram (up to 40 characters). parameter list is a list of parameters in the following form: variable [ () ] [as typename] [, variable [ () ] [ as typename]]…. Explore sub procedure in class 10 qbasic with different question examples with their respective codes in simple way.
Reverse Order Using Sub And Function Procedure Qbasic Declares a basic subprogram. sub subprogram name [ (parameter list)] [static ] … end sub. subprogram name is the name of the subprogram (up to 40 characters). parameter list is a list of parameters in the following form: variable [ () ] [as typename] [, variable [ () ] [ as typename]]…. Explore sub procedure in class 10 qbasic with different question examples with their respective codes in simple way.
Comments are closed.