Fayllar bilan ishlash oqimlariga qaysilar kiradi fstream, ifstream, ofstream
Dastur natijasini toping. n = 479
Download 0.67 Mb.
|
AKT
- Bu sahifa navigatsiya:
- Dastur natijasini toping. n = 777 1 *0 X Error 262.
- Dastur natijasini toping. n = 771
Dastur natijasini toping. n = 479 *1 0 X Error 261. Dastur natijasini toping. n = 777 1 *0 X Error 262. Dastur natijasini toping. n = 771 *1 0 X Error 263.
Dastur natijasini toping. n = 771 1 *0 X Error 264. C++da funksiyada qiymat qaytarish operatori? *return function New Delete C++da funksiya e’lon qilish to‘g‘ri ko‘rsatilgan satrni belgilang *Int myfunction() Int myfunction Int mysunction[] Int mysunction_ *1 0 2 3 *3 2 1 0 For (int i=0; i<4; i++)Sikl necha marta bajariladi? *4 3 5 2 For (int i=0; i<=4; i++)Sikl necha marta bajariladi? *5 4 3 6 *5 3 2 6 *9 6 18 3 Mantiqiy tip qanday tnomlanadi? *bool Real Int String C++da satrlar bilan ishlash kutubxonasi *string Stl Iostream Fstream C++da fayllar bilan ishlash kutubxonasi * fstream Stl Iostream Math C++da matematik funksiyalardan darajaga ko‘tarish funksiyasi? *pow sqrt sqr Abs Dasturda local o’zgaruvchilar xotiraning qaysi qismida saqlanadi? Global *Stekli Registrli Dinamik taqsimlanuvchi bo’sh Dasturda global o’zgaruvchilar xotiraning qaysi qismida saqlanadi? *Global Stekli Registrli Dinamik taqsimlanuvchi bo’sh Dasturda ichki xizmatchi ma’lumotlari xotiraning qaysi qismida saqlanadi? Global Stekli *Registrli Dinamik taqsimlanuvchi bo’sh int main() { int q;cin>>q; if(q>0)
{ int t=33; } cout< g-=2;
Cout< 7 *5 4 2 1.Dastur natijasini aniqlang: #include using namespace std; int EKUK(int a, int b) { while (a!=b) { if (a>b) a=a-b; else b=b-a; } return a; } int main() { int x=8,y=6; cout << EKUK(x,y); return 0; } A) 48 B) 24 C) 2* D) dasturda xatolik xabari chiqadi 2.Dastur natijasini aniqlang: #include using namespace std; int EKUB(int a, int b) { while (a!=b) { if (a>b) a=a-b; else b=b-a; } return a; } int main() { int x=8,y=6; cout << EKUK(x,y); return 0; } A) 48 B) 24 C) 2* D) dasturda xatolik xabari chiqadi 3.Dastur natijasini aniqlang: #include using namespace std; int EKUK(int a, int b) { while (a!=b) { if (a>b) a=a-b; else b=b-a; } return a; } int main() { int x=8,y=6; cout << EKUK(a,b); return 0; } A) 48 B) 24 C) 2 D) dasturda xatolik xabari chiqadi* 4.Dastur natijasini aniqlang: #include using namespace std; int EKUB(int a, int b) { while (a!=b) { if (a>b) a=a-b; else b=b-a; } return a; } int main() { int x=8,y=6; cout << EKUK(a,b); return 0; } A) 48 B) 24 C) 2 D) dasturda xatolik xabari chiqadi* 5.Dastur natijasini aniqlang: #include using namespace std; int fact(int a) { if (a==0) return 1; else return fact(a-1)*(a+1); } int main() { int x=5; cout << fact(x); return 0; } A) 24 B) 720* C) 120 D) dasturda xatolik xabari chiqadi 6.Dastur natijasini aniqlang: #include using namespace std; int fact(int a) { if (a==0) return 1; else return fact(a-1)*(a+0); } int main() { int x=5; cout << fact(x); return 0; } A) 24 B) 720 C) 120* D) dasturda xatolik xabari chiqadi 7.Dastur natijasini aniqlang: #include using namespace std; int fact(int a) { if (a==0) return 1; else return fact(a-1)*(a+1); } int main() { int x=5; cout << fact(a); return 0; } A) 24 B) 720 C) 120 D) dasturda xatolik xabari chiqadi* 8.Dastur natijasini aniqlang: #include using namespace std; int fact(int a) { if (a==0) return 1; else return fact(a-1)*a; } int main() { int x=5; cout << fakt(x); return 0; } A) 24 B) 720 C) 120 D) dasturda xatolik xabari chiqadi* 9.Dastur natijasini aniqlang: #include using namespace std; int powx(int a) { if (a==1||a==2) return 1; else return powx(a-1)+powx(a-2); } int main() { int x=8; cout << powx(x); return 0; } A) 21* B) 34 C) 13 D) dasturda xatolik xabari chiqadi 10.Dastur natijasini aniqlang: #include using namespace std; int powx(int a) { if (a==1||a==2) return 1; else return powx(a-1)+powx(a-2); } int main() { int x=8; cout << powx(a); return 0; } A) 21 B) 34 C) 13 D) dasturda xatolik xabari chiqadi* 11.Dastur natijasini aniqlang: #include using namespace std; int powx(int x) { int a=1,b=1,c; for (int i=1;i<=x-2;i++) { c=a+b; a=b; b=c; } return c; } int main() { int x=8; cout << powx(x); return 0; } A) 21* B) 34 C) 13 D) dasturda xatolik xabari chiqadi 12.Dastur natijasini aniqlang: #include using namespace std; int powx(int x) { int a=1,b=1,c; for (int i=1;i<=x;i++) { c=a+b; a=b; b=c; } return c; } int main() { int x=8; cout << powx(x); return 0; } A) 21 B) 34 C) 55* D) dasturda xatolik xabari chiqadi 13.Dastur natijasini aniqlang: #include using namespace std; int sqr(int a, int b) { if (b==0) return 1; else return sqr(a,b-1)*a; } int main() { int a=2,b=3; cout << sqr(a,b); return 0; } A) 4 B) 8* C) 27 D) dasturda xatolik xabari chiqadi 14.Dastur natijasini aniqlang: #include using namespace std; int sqr(int a, int b) { if (b==0) return 1; else return sqr(a,b-1)*(a+1); } int main() { int a=2,b=3; cout << sqr(a,b); return 0; } A) 4 B) 8 C) 27* D) dasturda xatolik xabari chiqadi 15.Dastur natijasini aniqlang: #include using namespace std; int sqr(int a) { if (a==0) return 0; if (a==1) return 1; else return sqr(a-1)*(a); } int main() { int a=3; cout << sqr(a); return 0; } A) 6* B) 9 C) 3 D) dasturda xatolik xabari chiqadi
Download 0.67 Mb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling