#include <iostream> #include <stdio.h> using namespace std;
int main(){ int y; cin>>y; y=y%12; switch (y){ case 4:{cout<<"Mouse"; break;} case 5:{cout<<"Bull";break;} case 6:{cout<<"Tiger";break;} case 7:{cout<<"Rabbit";break;} case 8:{cout<<"Dragon";break;} case 9:{cout<<"Snake";break;} case 10:{cout<<"Horse";break;} case 11:{cout<<"Goat";break;} case 0:{cout<<"Monkey";break;} case 1:{cout<<"Cock";break;} case 2:{cout<<"Dog";break;} case 3:{cout<<"Pig";break;} } cin.get(); cin.get(); return 0; }
nata27-73589
13.02.2023
// тестировалось на C#.Net Framework 4.5 using System;
class Program { static void Main() { int x1 = 2, y1 = 1; int x2 = 6, y2 = 5; int x3 = 10, y3 = 1;
var a = Distance(x2, y2, x3, y3); var b = Distance(x1, y1, x3, y3); var c = Distance(x2, y2, x1, y1);