We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Fixes #406 C program for swapping of two numbers
#include<stdio.h> int main() { double first, second, temp; printf("Enter first number: "); scanf("%lf", &first); printf("Enter second number: "); scanf("%lf", &second);
// value of first is assigned to temp temp = first;
// value of second is assigned to first first = second;
// value of temp (initial value of first) is assigned to second second = temp;
// %.2lf displays number up to 2 decimal points
printf("\nAfter swapping, first number = %.2lf\n", first); printf("After swapping, second number = %.2lf", second); return 0; }
Sorry, something went wrong.
This swaps the two numbers
can I work on this issue
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: