Contador Notas aprobadas
Publicado por Miguelangel (7 intervenciones) el 27/09/2016 05:27:39
He estado solicitando ayuda con un programa el cual el enunciado es el siguiente: Programa Que Lea Las Notas De Un Alumno De 0 - 20 (N) Notas E Indique Cuantas Materias Aprobó Y Cuantas Reprobó.
He creado los siguientes códigos pero necesito su ayuda ya que no da el resultado requerido.
Cuantas N materias aprobó y cuantas N materias reprobo?
He creado los siguientes códigos pero necesito su ayuda ya que no da el resultado requerido.
Cuantas N materias aprobó y cuantas N materias reprobo?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
program notas12;
uses wincrt;
var
A,R: word;
mt,i,nmt,n,ContA,ContR:integer;
begin
writeln ('Ingrese mat');
readln (n);
for i:= 1 to n do
begin
writeln ('Ingrese nota de la materia:');
Readln (nmt);
if nmt>10 then
WriteLn ('A');
ContA:= ContA+1;
if nmt<10 then
Writeln ('R');
ReadLn (R);
ContR:=ContR+1;
end;
Writeln ('Cant R:',ContR);
WriteLn ('Cant A:',ContA);
end.
O también:
program alumn;
uses wincrt;
var
n,nt,i,acun:integer;
Begin
WriteLn ('Ingrese la Cantidad de Materias a Evaluar');
ReadLn (N);
For i:= 1 to n do
Begin
ClrScr;
Writeln ('Ingrese Notas:');
Readln (Nt);
if (Nt > 10) then
WriteLn ('Aprobada') else
If (Nt<9.9) Then
Writeln ('Reprobada');
end;
End.
Valora esta pregunta


0