Código
#include <iostream.h> #include <stdio.h> #include <conio.h> using namespace std; int main() { int a[100]; int n = 10; int i; int s = 0; for (i=1; i<=10; i++) { cout<<"\nIngresa numero "; cout<< i; cout<<" : "; cin>> a[i]; } for (i=1; i<=10; i++) { if (i%3==0) { s = s+a[i]; } } system("CLS"); cout<<"\nLos Multiplos de 3 Son: "; for (i=1; i<=n; i++) { if (i%3==0) { cout<<"["; cout<< a[i]; cout<<"] "; } } cout<<"\n\nLa Suma Es: "; cout<<s; getch(); }