#include <stdio.h>
#include <stdlib.h>
int main(){
int liczba;
int i;
char litera;
//przyklad nr 1
switch(litera)
{
//' -char
//" - string
case 'a':
printf("Podano litere %c, jej kod asci to %d\n",litera
,litera
); break;
case 'b':
printf("Podano litere %c, jej kod asci to %d\n",litera
,litera
); break;
case 'c':
printf("Podano litere %c, jej kod asci to %d\n",litera
,litera
); break;
case 'g':
printf("Podano litere %c, jej kod asci to %d\n",litera
,litera
); break;
default:
printf("podana inna litere niz a,b,c lub g\n"); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KaW50IG1haW4oKXsKICAgIGludCBsaWN6YmE7CiAgICBpbnQgaTsKICAgIGNoYXIgbGl0ZXJhOwogICAgLy9wcnp5a2xhZCBuciAxCiAgICBwcmludGYoInByenlrbGFkIG5yIDFcbiIpOwogICAgcHJpbnRmKCJwb2RhaiBsaXRlcmUgOiIpOwogICAgc2NhbmYoIiVjIiwgJmxpdGVyYSk7CiAgICBwcmludGYoIlxuIik7CiAgICBzd2l0Y2gobGl0ZXJhKQogICAgewogICAgICAgICAgICAgICAgICAgICAgICAgLy8nIC1jaGFyCiAgICAgICAgICAgICAgICAgICAgICAgICAvLyIgLSBzdHJpbmcKICAgIGNhc2UgJ2EnOgogICAgICAgICBwcmludGYoIlBvZGFubyBsaXRlcmUgJWMsIGplaiBrb2QgYXNjaSB0byAlZFxuIixsaXRlcmEsbGl0ZXJhKTsKICAgICAgICAgYnJlYWs7CiAgICBjYXNlICdiJzoKICAgICAgICAgcHJpbnRmKCJQb2Rhbm8gbGl0ZXJlICVjLCBqZWoga29kIGFzY2kgdG8gJWRcbiIsbGl0ZXJhLGxpdGVyYSk7CiAgICAgICAgIGJyZWFrOwogICAgY2FzZSAnYyc6CiAgICAgICAgIHByaW50ZigiUG9kYW5vIGxpdGVyZSAlYywgamVqIGtvZCBhc2NpIHRvICVkXG4iLGxpdGVyYSxsaXRlcmEpOwogICAgICAgICBicmVhazsKICAgIGNhc2UgJ2cnOgogICAgICAgICBwcmludGYoIlBvZGFubyBsaXRlcmUgJWMsIGplaiBrb2QgYXNjaSB0byAlZFxuIixsaXRlcmEsbGl0ZXJhKTsKICAgICAgICAgYnJlYWs7CiAgICBkZWZhdWx0OgogICAgICAgICBwcmludGYoInBvZGFuYSBpbm5hIGxpdGVyZSBuaXogYSxiLGMgbHViIGdcbiIpOyAgICAgICAgICAgCiAgICB9CiAgICBzeXN0ZW0oInBhdXNlIik7CiAgICByZXR1cm4gMDsKfQ==