Computer Science, asked by mudraxdagar2650, 3 days ago

Write the flowchart to interchange the value of two variables

Answers

Answered by parkarziya573
1

Answer:

#include<stdio.h>

int main(){

int a,b,c; //Declaring the variables

printf("Enter two variables before swapping:\n");

printf("a:");

scanf("%d",&a);

printf("b:");

scanf("%d",&b);

printf("Values stored in a:%d and b:%d",a,b);

c=a;

a=b;

b=c;

printf("\nValues after swapping a=%d and b=%d",a,b);

}

Similar questions