ILOVA
#include
// o'qituvchi : Meliboyev Komil
// bir o'lchamli sonli massivlar 2-topshiriq 6-savol
using namespace std;
int main( ) {
int n;
cout<<"n=";
cin>>n;
int a[100];
for(int i=1; i<=n; i++){
cin>>a[i];
}
float sum=1;
for ( int i=1;i<=n; i++){
sum=sum*sqrt( a[i] );
}
cout<<"Massiv elementlari o'rta geometrigi':"<
return 0;
}
#include
// o'qituvchi : Meliboyev Komil
// bir o'lchamli sonli massivlar 1-topshiriq 6-savol
using namespace std;
int main(int ) {
int n;
cout<<"n=";
cin>>n;
int a[100];
for(int i=1; i<=n; i++){
cin>>a[i];
}
int sum=0;
for ( int i=1;i<=n; i++){
sum=sum+a[i]*a[i];
}
cout<<"Massiv elementlari yig'indisi:"<return 0;
}
#include
using namespace std;
struct ishchi
{
char
familiya[30];
char
ism[30];
float oklad;
int yosh;
};
// kiritish amalini qayta yuklash
istream& operator >>(istream& input, ishchi& k)
{
cout<<"familyani kiriting\n"; input>>k.familiya;
cout<<"ismni kiriting\n"; input>>k.ism;
cout<<"telefon nomerini kiriting\n"; input>>k.oklad;
return input;
}
ostream& operator<<(ostream& out, ishchi k)
{
cout<<" "<
cout<<" "<
cout<<"\t"<
return out;
}
int main()
{
ishchi p;
FILE
* f;
int n=0;
f=fopen("ishchi.dat","a=");
cout<<"Faqat ro'yxatni ko'rish uchun 0 kiriting\n";
cout<<"Yangi kiritiladigan ishchilar sonini kiriting\n";
cin>>n;
if (n>=1)
for(int i=1; i<=n; i++)
{
cout<
cin>>p;
fwrite(&p,sizeof(ishchi),1,f);
}
rewind(f);
cout<<"ishchiolar ro'yxati\n";
n=0;
while(fread(&p,sizeof(ishchi),1,f))
{
n++;
cout<
}
return 0;
}
#include
#include
#include
using namespace std;
//Bu dasturni yaratuvchi
//o'qituvchi: Meliboyev Komil
void Main(float A, float B, float C, float D) {
double urAB, urAC, urAD, gmAB, gmAD, gmAC;
urAB=(A+B)/2;
urAC=(A+C)/2;
urAD=(A+D)/2;
gmAB=sqrt(A*B);
gmAD=sqrt(A*D);
gmAC=sqrt(A*C);
printf("%.21f
%.21f
%.21f
%.21f
%.21f
%.21f
",urAB,urAC,urAD,gmAB,gmAC,gmAD);
}
int main () {
double A,B,C,D;
cin>>A>>B>>C>>D;
Main(A,B,C,D);
return 0;
}
#include
#include
#include
using namespace std;
//Bu dasturni yaratuvchi
//o'qituvchi: Meliboyev Komil
//4-masala
void Triangle(float a) {
double p,s;
p=a*3;
s=(a*a*sqrt(3))/4;
printf("%.21 %.21 ",p,s);
}
int main () {
double a;
cin>>a;
Triangle(a);
return 0;
}
#include
#include
using namespace std;
int main()
{
int n,m,i,j,s,a[100][100],b[100];
cout<<"Matritsadagi satrlar sonini kiriting M="; cin>>m;
cout<<"\n";
cout<<"Matritsadagi ustunlar sonini kiriting N="; cin>>n;
cout<<"\n";
for (i=0;i
for (j=0;j
{ cout<<"a["<>a[i][j];}
cout<<"\n";
for (i=0;i
{s=0;
for (j=0;j
{s=s+a[i][j];}
b[i]=s;
}
for (i=0;i
{cout<<"Matritsadagi "<
teng."<<"\n";
cout<<"\n";}
getch();
return 0;
}
Rasm. Matritsadagi satrlar yig‟indisi.
Foydalanilgan adabiyotlar.
1.1.
Nazirov Sh. C++ da dasturlash asoslari.
1.2.
Mardanova N.S. C++ tilida dasturlash
1.3.
J.Liberti. Osvoy samostoyatelno C++ za 21 den.-SPb.2003.-815 s.
1.4.
Informatika. Bazaviykurs. 2-izdanie. Uchebnikdlya VUZOV/Pod red.
S.V.Simonovicha.-SPb.: Piter, 2009.-640 s.
1.5.
Рахмокулова С.И. IBMPCшахсийкомпьютердаишлаш. 1999.
1.6.
Бобровский С. , Delphi 7. Учебный курс. 2003, - 736 с.
1.7.
О.А.Акулов, Н.В.Медведев Информатика базовый курс.
Учебник.Москва 2007г. 555 стр.
Internet resurslari
2.1.
http://www.ziyonet.uz
- milliy axborot ta`lim tarmog`i
2.2.
http://www.mail.uz
- milliy elektron pochta xizmati
2.4.
http://www.edu.uz
- O`zbekiston ta`lim portali
2.5.
http://www.aci.uz
- O`zbekiston aloqa va axborotlashtirish agentligi
portali
2.6.
http://www.uza.uz
- O`zbekiston milliy axborot agentligi
2.7.
http://www.tuit.uz
-TATU Veb portali
Do'stlaringiz bilan baham: |