answersLogoWhite

0

Public Sub Swap()

dim inta as integer

dim intb as integer

dim intc as integer

inta=4

intb=5

intb=inta

intc=intb

inta=intc

End Sub

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is a variable that accumulates the sum of several numbers?

A total is a variable that accumulates the sum of several numbers. Answer is based on C How to Program (6th Edition)


What is program in c to swap entered two numbers without using third variable?

The required c program is given below /*Swapping(interchange) the two entered numbers*/ #include<stdio.h> main() { /*Without using third variable*/ int a,b,t; printf("Enter a:"); scanf("%d",&a); printf("Enter b:"); scanf("%d",&b); a=a+b; b=a-b; a=a-b; printf("\n After swapping without using third variable"); printf("\na=%d\nb=%d",a,b); }


How do we write c program without using swap to interchange values by accessing another variable?

int a,b; a=a+b; b=a-b; a=a-b; that's it simple


Program in c using pointers to interchange 2 values without using third variable?

swap (int *pa, int *pb) { *pa ^= *pb; *pa ^= *pa; *pa ^= *pb; }


How do you write a program in java to read ten numbers and print sum of ten integers?

Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.


How can a reassigned local variable impact the functionality of a program?

When a local variable is reassigned in a program, it can impact the functionality by changing the value that the variable holds. This can lead to unexpected behavior or errors in the program if the reassigned value is not properly accounted for in the code. It is important to carefully manage variable assignments to ensure the program functions as intended.


If the variable flag can only be declared once in the program it was declared as what type of variable?

It's a global variable.


Write a program for sorting for numbers without repited values?

Any number variable is extends the Number in java and it already implemented Comparable interface. So when you have a list of numbers, just use Arrays.sort().


What is a variable used in computer gaming?

it depends, if its a desired variable, its a program, but if its undesired, its a glitch


What does input variable mean?

In computer science, an input variable is the input from the user. To read an input, there must be a scanner. The scanner will state what type of value, or variable, that the user must put in to proceed. Such variables include int, double, String, etc. The program can then use the value to perform calculaltions. For example, a program that adds two numbers together may ask the user to input the two numbers and it will return the sum. The scanner method will make sure that the user inputs a numerical variable such as an int or double, rather than a String.


How do you program a hayward variable speed pool pump?

how to program a pool vacuum


A variable that is used in all program modules is?

global