answersLogoWhite

0

#include
#include
void main()
{ int a,b,c;
printf("\nEnter 1st no.");
scanf("%d",&a);
printf("\nEnter 2nd no.");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("\n1st no.",a);
printf("\n2nd no.",b);
getch();
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a program that calculate factorial in javascript?

factorial number Var num= prompt("enter any number "); Var i=1; Var fact=1; for(i=1;i


How do you get var mobile Library AddressBook?

Use a program to access the iPhone/Touch system (jailbreak required), such as iFunbox.


What is the meaning of Var -var vachne marathi senten?

What is the meaning of var-var vachne(marathi sent) in marathi


What is the ticker symbol for Varian Medical Systems?

The ticker symbol for Varian Medical Systems is VAR and it is traded on the New York Stock Exchange.


How do you write an assignment statement in visual basic?

You declare it by this: Dim var as integer or Public var as integer You can use other types instead of integer like long, double, string, byte etc. Using Public is for making a variable accessible from everywhere and using Dim is for making it accessible only from where you declared it from. For using the variable you just type: var = 1 var = "something" var = 5 + 10 * (2 - 3) var = var & "abc" var &= "abc" In each case the variable will have these values: 1 something -15 Whatever var had before plus abc Again whatever var had before plus abc These are the basics of using a variable


What is the abbreviation for variant?

Var or Var.


How do you get a program off of a graphing calculator?

Usually 2nd Memory... or 2nd Var-Link depending on your model. Then you will see a list you can delete from.


How do you use if and for in pascal together?

That depends.This is an exampleIF var=1 then beginfor var=1 to 5 dowriteln(var);end {of then}else writeln(var);


Program for printing prime numbers in vb?

Option Explicit Dim i,j,var,Flag,n var="" n=cint(InputBox("Enter nth Number to check Prime Numbers")) i = 3 While i <= n Flag = True j = 2 While j <= i\2 And Flag Flag = i Mod j > 0 j = j + 1 Wend If Flag Then var = var&" "&i End If i = i + 2 Wend MsgBox("Prime numbers within n numbers "&n&"= : 1" & var)


How do you make Additison of two nos in Javascript?

I assume you mean the addition mathematically of two numbers. The simple answer is to divide the numbers by one. Simple addition example. var num1 = prompt("Insert first number.",""); var num2 = prompt("Insert second number.",""); var ans = num1/1 + num2/1; alert(ans);


How do you pronounce Lochinvar?

lock-in-var


How many syllables are there in the word vary?

The word vary has two syllables. (Var-y)