

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
1
#include <iostream>
using namespace std;
int a,b;
int main()
{ freopen("ptsohoc.INP","r",stdin);
freopen("ptsohoc.OUT","w",stdout);
ios_base::sync_with_stdio(false);
cin.tie();cout.tie();
cin>>a>>b;
cout<<a+b<<endl;
cout<<a-b<<endl;
cout<<a*b<<endl;
cout<<a/b<<endl;
cout<<a%b<<endl;
return 0;
}
2
#include <iostream>
using namespace std;
int n;
int main()
{ freopen("haics.INP","r",stdin);
freopen("haics.OUT","w",stdout);
ios_base::sync_with_stdio(false);
cin.tie();cout.tie();
cin>>n;
cout<<n/10<<endl;
cout<<n%10<<endl;
return 0;
}
3
#include <iostream>
using namespace std;
int n;
int main()
{ freopen("bacs.INP","r",stdin);
freopen("bacs.OUT","w",stdout);
ios_base::sync_with_stdio(false);
cin.tie();cout.tie();
cin>>n;
cout<<n/100<<endl;
cout<<n%100/10<<endl;
cout<<n%10<<endl;
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?
#include <bits/stdc++.h>// bai 6
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
cout<<(long long)a+b<<'\n';
cout<<a-b<<'\n';
cout<<(long long)(a*b)<<'\n';
cout<<a/b<<'\n';
cout<<a%b;
return 0;
}
//==================================================
#include <bits/stdc++.h>// bai 7
using namespace std;
int n;
int main()
{
cin>>n;
cout<<n/10<<'\n'<<n%10;
return 0;
}
//===================================================
#include <bits/stdc++.h>// bai 8
using namespace std;
int n;
int main()
{
cin>>n;
cout<<n/100<<'\n'<<n/10%10<<'\n'<<n%10;
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
26
2331
12
giúp em vs ak https://hoidap247.com/cau-hoi/6274338
28
59
19
https://luyencode.net/problem/11mun cíu tui ik ông zà :))))))
29
369
11
bài đầu tràn đó ông :v đoạn nhân í
29
369
11
code dưới tôi ổn hơn nè
395
1169
228
2 chữ số tràn ?????????
395
1169
228
:VVVVVVVV
28
59
19
https://hoidap247.com/cau-hoi/6283345 cíu @ManhTran2k10
29
369
11
à sorry ông, tôi đọc nhầm đề =))))