12.07.2015 Views

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{case '+': result = result + arg; break;case '-': result = result - arg; break;case '*': result = result * arg; break;case '/': result = result / arg;k;}може да се запише и в следната съкратена форма:switch (op){case '+': result += arg; break;case '-': result -= arg; break;case '*': result *= arg; break;case '/': result /= arg;}Задача 45. Да се напише програма, която въвежда малка буква отлатинската азбука и извежда съответната й главна буква.Програма Zad45.cpp решава задачата.// Program Zad45.cpp#include int main(){char c;cin >> c;if (c < 'a' || c > 'z'){cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!