answersLogoWhite

0


Best Answer

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

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

#include<stdio.h>

void main()

{

int a,b;

printf ("Enter the value of a and b");

scanf ("%d%d",&a,&b);

a=a+b;

b=a-b;

a=b-a;

printf("After swaping a and b is = ",%d,%d);

}

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

write a c program to find out whether the character presses through keyboard is a digit or not (using conditional operator)

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

write a program

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

health

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to input two numbers and interchange there value using the third variable Give anawers in Basic method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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&lt;stdio.h&gt; main() { /*Without using third variable*/ int a,b,t; printf("Enter a:"); scanf("%d",&amp;a); printf("Enter b:"); scanf("%d",&amp;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.


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


What is the scope of a data statement?

A global scope is an entire computer program. A variable scope is the part of the program in which the variable may be accessed. (close enough)


A variable that is used in all program modules is?

global