Phần mềm học tập

nhung olv
Xem chi tiết
nhung olv
24 tháng 11 2022 lúc 19:15

hộ mik vs ạ 

Bình luận (0)
Slime
24 tháng 11 2022 lúc 19:19

 các tam giác của bạn gồm những tam giác gì ạ

Bình luận (3)
Trần Trọng Trí
Xem chi tiết
Nguyễn Lê Phước Thịnh
7 tháng 11 2022 lúc 16:06

uses crt;

var a:array[1..100]of integer;

i,n,t,ln:integer;

begin

clrscr;

readln(n);

for i:=1 to n do readln(a[i]);

t:=0;

ln:=a[1];

for i:=1 to n do 

begin

t:=t+a[i];

if ln<a[i] then ln:=a[i];

end;

writeln(t);

writeln(ln);

readln;

end.

Bình luận (0)
Trần Đức Anh
Xem chi tiết
Nguyễn Hữu Hoàng Anh
Xem chi tiết
Nguyễn Lê Phước Thịnh
24 tháng 6 2022 lúc 22:25

uses crt;

var a:array[1..100,1..100]of integer;

n,m,i,t1,t,ln:integer;

begin

clrscr;

readln(n,m);

for i:=1 to n do 

  for j:=1 to m do readln(a[i,j]);

t:=0;

for i:=1 to n do

  for j:=1 to m do 

  t:=t+a[i,j];

writeln(t);

t1:=0;

for i:=1 to n do 

begin

ln:=a[i,1];

for j:=1 to m do 

  if ln<a[i,j] then ln:=a[i,j];

t1:=t1+ln;

end;

writeln(t1);

readln;

end.

Bình luận (0)
Nguyễn Hữu Hoàng Anh
Xem chi tiết
Lê Ngọc
23 tháng 6 2022 lúc 13:50

#include "stdio.h"

#include "conio.h"

#include "math.h"

//-----------------------------

void souoc( designed n)

{

for( int i=1;i<=n;i++)

if(n%i==0)

printf("%d",i);

}

//----------------------------

void main()

{

clrscr();

designed n;

printf("\n nhap n: ");

scanf("%d",n);

printf("\n cac uoc so la:");

souoc(n);

getch();

}

Bình luận (1)
Nguyễn Hữu Hoàng Anh
Xem chi tiết
Nguyễn Lê Phước Thịnh
22 tháng 6 2022 lúc 19:25

uses crt;

var a:array[1..100,1..100]of integer;

n,m,i,t1,t,ln:integer;

begin

clrscr;

readln(n,m);

for i:=1 to n do 

  for j:=1 to m do readln(a[i,j]);

t:=0;

for i:=1 to n do

  for j:=1 to m do 

  t:=t+a[i,j];

writeln(t);

t1:=0;

for i:=1 to n do 

begin

ln:=a[i,1];

for j:=1 to m do 

  if ln<a[i,j] then ln:=a[i,j];

t1:=t1+ln;

end;

writeln(t1);

readln;

end.

Bình luận (1)
Nguyễn Hữu Hoàng Anh
Xem chi tiết
Minh Lệ
15 tháng 6 2022 lúc 11:45

Program HOC24;

var n: word;

t,min,max: byte;

begin

write('Nhap N= '); readln(n);

min:=n mod 10;

max:=n mod 10;

while n<>0 do

begin

t:=n mod 10;

if min>t then min:=t;

if max<t then max:=t;

n:=n div 10;

end;

writeln('Chu so nho nhat la: ',min);

write('Chu so lon nhat la: ',max);

readln

end.

Bình luận (1)
Cao ngocduy Cao
17 tháng 6 2022 lúc 9:54

var n: word;

t,min,max: byte;

begin

write('Nhap N= '); readln(n);

min:=n mod 10;

max:=n mod 10;

while n<>0 do

begin

t:=n mod 10;

if min>t then min:=t;

if max<t then max:=t;

n:=n div 10;

end;

writeln('Chu so nho nhat la: ',min);

write('Chu so lon nhat la: ',max);

readln

end.

Bình luận (0)
Le Hoang Phuc
Xem chi tiết
Nguyễn Lê Phước Thịnh
30 tháng 4 2022 lúc 21:55

#include <bits/stdc++.h>

using namespace std;

double a,b,c;

int main()

{

cin>>a>>b>>c;

cout<<fixed<<setprecision(2)<<(a+b+c)/3;

return 0;

}

Bình luận (0)
Đặng Minh Hiếu
Xem chi tiết
Đỗ Thị Minh Ngọc
26 tháng 4 2022 lúc 22:19

progam bai1;

var a: array[1..32000] of integer ;

i,n,dem1,dem2 : integer ;

begin

write('n='); readln(n);

writeln('Nhap gia tri cua cac phan tu');

for i:= 1 to n do

begin

write('a[',i,']='); readln(a[i]);

end;

dem1:=0; dem2:=0;

for i:= 1 to n do

begin

if a[i]>0 then dem1:=dem1+1;

if a[i]>0 then dem1:=dem2+1;

end;

write('Cac so nguyen am trong day la:',dem1);

writeln;

write('Cac so nguyen am trong day la:',dem2);

readln;

end.

Bình luận (0)
Tuan Tran Nguyen
Xem chi tiết