Preview:
#include <fstream>
#include <iostream>

using namespace std;

int main() 
{
 
   int n, s1,s2,s3;
   cin>>n;
   
   if(n%2==0) cout<<"Lyginis";
   else cout<<"Nelyginis";
   
   // skaicius n trizenklis.Kaip rasti jo skaitmenis?
   s1=n/100;
   s2=(n/10)%10;
   s3=n%10;//paskutinis skaitmuo bet kuriuo atveju
   
   




return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter