Hello!
I enter the month number, number 1 - and this is January (I just have the 'y' character). How can I output the entire string Yanvar without using an array?
#include <stdio.h> int main() { int m1; char c; scanf("%d", &m1); c = m1 == 1 ? 'y' : m1 == 2 ? 'f' : m1 == 3 ? 'm' : 'o'; printf("%d -> %cn", m1, c); }