Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Clang.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//swapping two variables
#include<stdio.h>
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will include the standard input and output header file.

int main(){
double a ,b;
printf("Enter numbers to be interchanged=");
scanf("%lf %lf", &a, &b);
a=a+b;
b=a-b;
a=a-b;
printf("\nAfter swapping the numbers, \n the first number is=%lf \n the second number is=%lf", a,b);
return 0;}