#include <iostream>
#include <string>
#include <locale.h>
#include <cmath>
using namespace std;
int main()
{
setlocale(LC_CTYPE, "polish");
int a;
cout << "----Przelicznik----n";
cout << "1-F na C n";
cout << "2-CM na M n";
cout << "3-KG na LBS n";
cout << "4-G na OZ: n";
cout << "0-WYJSCIE n";
while (bool j = true) {
cout << "Podaj numer: n";
cin >> a;
if (a == 1) {
float c;
cout << "Podaj w F:n";
cin >> c;
float suma = (c - 32) * 5 / 9;
cout << c << "stopni F to " << suma << "stopni celsjuszan";
}
else if (a == 2) {
float cm;
cout << "Podaj w cm:n";
cin >> cm;
float suma1 = cm/100;
cout << cm << "centymetrow to " << suma1 << " metrown";
}
else if (a == 3) {
float kg;
cout << "Podaj kg:n";
cin >> kg;
float sum2 = kg * 2.2;
cout << kg << " to " << ceil(sum2) << " lbsn";
}
else if (a == 4) {
float g;
cout << "Podaj g:n";
cin >> g;
float sum3 = g * 0.0352;
cout << g << " to " << sum3 << " uncjin";
}
else if (a == 0) {
cout << "Dziekujemy ;)";
break;
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}