Untitled

mail@pastecode.io avatar
unknown
c_cpp
5 months ago
391 B
1
Indexable
#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