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/

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

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.