Andijon Mashinasozlik Instituti ib va kt fakulteti K34-22 guruh talabasi To’xtasinova Diloromning Dasturlash Texnalogiyasidan xisobod slaydi


Download 3.05 Kb.
Sana16.06.2023
Hajmi3.05 Kb.
#1514574
Bog'liq
dasturlash texnalogiyasi

Andijon Mashinasozlik Instituti IB va KT fakulteti K34-22 guruh talabasi To’xtasinova Diloromning Dasturlash Texnalogiyasidan xisobod slaydi

Dasturlash texnalogiyasi biz dasturlash texnalogiyasidan eng avval dasturni algaritimini tuzishni o’rgandik. Algaritimini tuzib, dev-c++ da qo’dlarini yozdik.

Bu qo’d orqali ikki sonni qo’shiladi #include #include using namespace std; int main(int argc, char** argv) {int a,b,d; cout<<"rastinka kiriting ="; cin>>a; cout<<"sonini kiriting ="; cin>>b; d=a*b; cout<
Bu bilan esa sonni juft yoki toq ekanligini aniqlanadi.
#include
#include
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
cout<<"n=";
cin>>n;
if(n%2==0) cout<<"juft";
else cout<<"toq";
return 0;
}

#include #include using namespace std; qo’d yoshishda doim shular bo’lishi kere. Meni ancha o’ylantirgan qo’d bu #include #include using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { float y,a,b,x; cout<<"a ni kiriting= "; cin>>a; cout<<"b ni kiriting= "; cin>>b; x= 5; while(x>=5&&x<=10){ y=(a*a +b*x+x*x)/(a*a +b*b+x*x); cout<
Download 3.05 Kb.

Do'stlaringiz bilan baham:





Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling