مشاهدة النسخة كاملة : كتابة لوغارتيم حول قسمة عديدن
djidjicoucou
2016-12-24, 17:50
écrire un algorithme qui lit deux nombres .diviser le plus grand par le plus petit et si le plus petit est nul afficher un message d"erreur
شكرا
djidjicoucou
2016-12-24, 18:38
?????????????
aoufi kamel
2016-12-24, 18:49
ممكن حل في الباسكال لهده الخوارزمية
djidjicoucou
2016-12-24, 18:54
حتى انا نبحث عليها
sami bett
2016-12-24, 21:32
program diviserleplusgrand;
var a:integer; b:integer;
begin
write('a=');
read(a);
write('b=');
read(b);
if a>b then
begin
if b=0 then
writeln('Erreur: Division sur 0.')
else write('a/b=',a/b);
end
else
begin
if a=0 then
writeln('Erreur: Division sur 0.')
else write('b/a=',b/a);
end;
readln;
readln;
end.
amine bouzawia
2017-02-06, 17:56
بارك الله فيكم و جعله في ميزان حسناتكم
vBulletin® v3.8.10 Release Candidate 2, Copyright ©2000-2025, TranZ by Almuhajir