answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

int main()

{

int val1,val2,swap;

printf("Enter both values\n");

scanf("%d %d",&val1,&val2);

printf("val1=%d",val1);

printf("val2=%d",val2);

swap=val1;

val1=val2;

val2=swap;

printf("val1=%d",val1);

printf("val2=%d",val2);

return 0;

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Write a program using recursion which should take two values and display 1st value raised to the power of second value?

Write a program using recursion which should take two values and display 1st value raised to the power of second value.


A c program to square matrix?

A C program to square matrix is a math problem. In the math problem you write down all the outer boundary values of matrix in a circle, then write down the inner value.


Write a program using 8086 instructions to double a number?

There isn't a reason to write a complete program to do this; in any assembly language just shift the value 1 bit to the left to double it.


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Write a sample program using ASPNET explaining all the syntax and semantics of the program?

write a sample program using asp.net explaining all the syntax and semantics of the program


How do you write Square program using vb?

write a vb program to find the magic square


How do you write a c program to find square of a no using call by value?

int square (int N) return N*N;


Write a c program for function with no arguments and no return values?

void mynullfunction () {;}


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


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


Writing a program which prints a text of 4 lines consisting of characters integer values and floating point values using print statement?

To write a program that prints a text of 4 lines consisting of integer and floating point values, you can use formatted strings in Python. Here's a simple example: int_value = 42 float_value = 3.14 print(&quot;Line 1: Integer value is&quot;, int_value) print(&quot;Line 2: Float value is&quot;, float_value) print(&quot;Line 3: Sum of values is&quot;, int_value + float_value) print(&quot;Line 4: Float value to two decimals is {:.2f}&quot;.format(float_value)) This code snippet prints four lines, showcasing both integer and floating point values.


Write function integerpower that return the value of base exponent?

write a scripting to return values in functions