#include <iostream>
using namespace std;
int main(){ int a[100],i,n; cout<<"N=";cin>>n; for(i=1;i<=n;i++) { cout<<"a["<<i<<"]=";cin>>a[i]; } cout<<"Numerele care sunt multiple de alui 5 sunt: "; for(i=1;i<=n;i++) { if(a[i]%5==0) cout<<a[i]<<", "; } return 0;}
L-am testat in Code Blocks si merge 100% daca intampini probleme poti sa-mi zici.