#include <iostream>
using namespace std;
int main()
{
int n,c1,c2;
cin>>n;
cout<<n%10<<endl; //ultima cifra
c1=n%10;
n=n/10;
cout<<n%10<<endl; //penultima cifra
c2=n%10;
cout<<c1*c2<<endl; //produsul
return 0;
}
Ii in codeblocks, dar ar trebui sa mearga si in visual, copiaza main-ul.