New course! Every coder should learn Generative AI!
Try a free lesson+ 2
logic is
int i;
now if i modulus 4 is equal to zero then print A
elseif
i modulus 100 is equal to zero then print B
elseif
i modulus 400 is equal to zero
then print C..
//perhaps I don't have knowledge of python you can apply this logic though 😅