C++ // ktora_wieksza.cpp

#include <iostream>
int main()
{
using namespace std;
int a,b;
cout << “Podaj dwie liczby: “;
cin >> a >> b;
cout << “Większa z liczb” << a << “i” << b;
int c = a > b ? a :b;
cout << ” to ” << c << endl;
return 0;
}

Posted at 4:04 pm on September 30, 2006 | leave a comment | Filed Under: C++ | read on

TP // tabliczka_mnozenia.pas

uses crt;
var a:real;
begin
clrscr;
writeln(‘podaj liczbe: ‘);
read(a);
if (a=0) then
writeln(a:6:2,’= 0′)
else
begin
if (a>0) then
writeln(a:6:2,’ > 0′)
else
writeln(a:6:2,’ < 0′)
end;
delay(5000);
end.

Posted at 4:52 pm on March 25, 2006 | leave a comment | Filed Under: TP | read on

About

cwyn  ©  2006

Categories