Computer Science, asked by bhenderson3630, 1 year ago

Changing a number in ones place with another digit c++

Answers

Answered by Anonymous
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