Facebook
From ja, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 32
  1. #include <iostream>
  2.  
  3. int main() {
  4.   std::cout << "Operatorzy cd.\n";
  5.   int a = 1, b = 1;
  6.   float x=2.5, y=6.25, z;
  7.   std::cout <<"a="<< a<<",b="<<b<<"\n";
  8.   std::cout <<"Alternatywa a || b :"<<(a || b)<<"\n";
  9.   std::cout <<"kouniukcja a && b :"<<(a && b)<<"\n";
  10.   b=0;
  11.   std::cout <<"Alternatywa a || b :"<<(a || b)<<"\n";
  12.   std::cout <<"kouniukcja a && b :"<<(a && b)<<"\n";
  13.   a=3;
  14.   b=5;
  15.   std::cout <<"a="<<a<<
  16. }