#include <stdio.h>
#include <conio.h>
void main()
{
float a, b, temporaryVariable;
printf("Enter first number: ");
scanf("%f", &a);
printf("Enter second number: ");
scanf("%f",&b);
temporaryVariable = a;
a = b;
b = a;
printf("\nAfter swapping, firstNumber = %f\n", a);
printf("After swapping, secondNumber = %f", b);
getch();
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.