Olloyorov Alisher 417-20
Download 22.58 Kb.
|
5-laboratoriya
Olloyorov Alisher 417-20
#include using namespace std; int division_3(int a){ if(a%3==0) cout<<"3 ga qoldiqsiz bo'linadi"; else cout<<"3ga qoldiqsiz bo'linmaydi"; } int main(){ int n; cout<<"sonni kiriting n="; cin>>n; division_3(n); cout< return main(); }
#include using namespace std;
int teskari_son(int n) {
int teskari=0; cin>>n;
n*=10; while(n>=10){ (teskari*=10)+=(n/=10)%10; } cout<<"Teskarisi: "< int main(){ int a,b; teskari_son(a); cout< return main(); |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling