October 2018 2 72 Report

W tym programie chodzi aby zamienic duza litere na mala i na odwrot przy wykozystaniu kodu ASCII.Potrzebuje aby ta funkcje zrobic zeby dzialala oraz zeby byla "idioto odporna".dam naj

uses crt;

function liczba(a:char;b:byte):byte;

begin

readln(a);

b:=ord(a);

if b=>65>90then writeln(chr(b+32))

else if b=<97<122 then writeln(chr(b-32));

readln;

end;

var

a:char;

b:byte;

begin

clrscr;

writeln('podaj litere');

writeln(liczba(a,b));

readln;

end.


More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.