Computer Programming
262 subscribers
58 photos
15 videos
55 files
16 links
- Programming Lessons
- Daily problems
- Guide books

Murojaat: @asadbek_tolqinjonov
Download Telegram
For sikl operatori.pdf
812.1 KB
For sikl operatori uchun qoʻllanma

#cpp
@cpp_sirius👨‍💻
Any suggestions and questions?

@asadbek_tolqinjonov
Live stream scheduled for
‼️Extra Sessions for Midterm Preparation‼️

Today we are going to organize an online lesson

💻 C++ Programming
Time: 21:00
Topic will be Functions


Be prepared, guys

@cpp_sirius👨‍💻
6
Computer Programming
Photo
‼️We have changed the code
Live stream started
We are starting...
Ovoz?
Ekran?
Ovoz?
🔥3
// C++ dasturlash tili - funksiyalar tili

// 1. Parametrli funksiyalar;
// 2. Parametrsiz;

// 1. Value-returning (qiymat qaytaradigan)
// 2. Qiymat qaytarmaydigan (void)

// Global and local variables

// Value - qiymat parametrlari
// Ko'rsatkichlar parametrlari - Reference

// Funksiyadan chiqish
Tushunyapmizmi?
💯1
// Sintaksis
// Qiymat qaytaradigan funksiyalar
// data_types -> int, float, double, char, string, bool
// name -> Yigindi, Formula, Prime, Max
// Parameters -> o'zgaruvchilar va ularning toifasi

data_type nameOfFunction(parameters){
funksiya tanasi;
return result;
}
Ayirmani hisoblaydigan funksiya?
int Multiplication(int a, int b){
int mul;
mul = a*b;
return a*b;
}
int Multiplication(int a, int b){
int mul;
return a*b;// shu yerda to'xtaydi
mul = a*b;
}
#include <iostream>
#include <math.h>
using namespace std;

float Ayirma(float a, float b){
float ayir;
ayir = a-b;
return ayir;
}

int main(){
int qw, we, ayirma;
cout<<"Enter the numbers: "; cin>>qw>>we;
ayirma = Ayirma(qw, we);
cout<<ayirma;
return 0;
}