Changing a number in ones place with another digit c++
Answers
Answered by
1
hey mate.
program:
#include<stdio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"enter value of a and b";
cin>>a>>b;
a=b+a;
b=a-b;
a=a-b;
cout<<"after swapping ";
cout<<" a="<<a<<"b="<<b<<"c="<<c;
getch();
}
I hopes its helps u.
please follow me!!
@abhi.
Similar questions