Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
391 B
2
Indexable
Never
#include <iostream>

int main()
{
    char znak;
    
    std::cout << "Podaj znak: ";
    std::cin >> znak;

    switch (znak)
    {
    case 'a':
        std::cout << znak << std::endl;
        break;

    case 'b':
        std::cout << znak << std::endl;
        break;

    default:
        break;
    }

    std::cout << "Koniec" << std::endl;

    return 0;
}
Leave a Comment