1 chi dars

biz oldingisafar shu kodlarda nimabulishini organdik.

#include <iostream>

bu kodlar kutubhonadeb ataladi.

#include <iomanip>

bu kodlar kutubhonadeb ataladi.

#include <cmath>

bu kodlar kutubhonadeb ataladi.


This content originally appeared on DEV Community and was authored by Muhammadyusuf

biz oldingisafar shu kodlarda nimabulishini organdik.

#include <iostream>

bu kodlar kutubhonadeb ataladi.

#include <iomanip>

bu kodlar kutubhonadeb ataladi.

#include <cmath>

bu kodlar kutubhonadeb ataladi.

using namespace std;

bu kod stdni har cout dan oldin .

int main(){

int soni kirg'zishdan oldin quyiladi.

int a;

bu int a bildirip turadi.

cin >> a;

bu kod esa intdan keyin quyiladigon kod.

 string son (a > 19 ? "1" : "0");

bu kod esa agar int songa belgilangan sondan utibketsa bildishnoma uchun quyiladi.

  cout  << son;
return 0;

bu kod kod larni 0marta qaytarddeb buyruqberadi.

}

bu kod esa int main dankeyin kod tugaganini bildiradi.

BIRINCHI KOD TUGADI

.

IKKINCHIKOD BOSHLANDI
    #include <iostream>

bu kodlar kutubhonadeb ataladi.

using namespace std;

bu kod stdni har cout dan oldin .

int son ;

kod yozishdanoldin yoziladi .

cin >> son;

.

cout << (son > 0 ?(son % 2 == 0 ? "musbat fuft":"manfiy "))

bu kod esa agar int sonigakirg'zilgan sonni ogohlantiribturadi.


This content originally appeared on DEV Community and was authored by Muhammadyusuf


Print Share Comment Cite Upload Translate Updates
APA

Muhammadyusuf | Sciencx (2024-08-19T17:17:36+00:00) 1 chi dars. Retrieved from https://www.scien.cx/2024/08/19/1-chi-dars-2/

MLA
" » 1 chi dars." Muhammadyusuf | Sciencx - Monday August 19, 2024, https://www.scien.cx/2024/08/19/1-chi-dars-2/
HARVARD
Muhammadyusuf | Sciencx Monday August 19, 2024 » 1 chi dars., viewed ,<https://www.scien.cx/2024/08/19/1-chi-dars-2/>
VANCOUVER
Muhammadyusuf | Sciencx - » 1 chi dars. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/19/1-chi-dars-2/
CHICAGO
" » 1 chi dars." Muhammadyusuf | Sciencx - Accessed . https://www.scien.cx/2024/08/19/1-chi-dars-2/
IEEE
" » 1 chi dars." Muhammadyusuf | Sciencx [Online]. Available: https://www.scien.cx/2024/08/19/1-chi-dars-2/. [Accessed: ]
rf:citation
» 1 chi dars | Muhammadyusuf | Sciencx | https://www.scien.cx/2024/08/19/1-chi-dars-2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.