Computer Science, asked by rahulrejidhan7688, 1 year ago

Write an algorithm to swap the values of two variables

Answers

Answered by Hiren33
2
swap(int)
{
i<- a ,j<- b;
while(a>0&&b>0)
{
a=b;b=k;k=b;
}
}

int i,j,k
{
swap(I;j)
}
Similar questions