BTHH

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

#include <iostream>

#include <cmath>

using namespace std;

void swap(int *x,int *y ){

int main(){

int x,y;

cin>>x>>y;

swap(x,y)

cout<<x<<y<<endl;

return 0;

return 0;

#include <iostream>

using namespace std;

int main()

int dem,s,n;
cout<< "nhap n:";

cout<<"nhap a:";

cin>>n;

cin>>a;

dem=1;

while (n>=10){

n=n/10;

dem++;

s=0;

while(a>=0){

s=s+a%10*pow(10,dem-1);

a=a/10;

cout<<s;

return 0;

You might also like