#include "stdio.h"
#include "stdlib.h"
using namespace std;
int main(){
int n;
int enter_number;
int result = 1;
printf("Enter amount of number: "); scanf("%d", &n);
for(int i = 0 ; i < n; i++){
printf("Enter number: "); scanf("%d", &enter_number);
result = result * enter_number;
}
printf("result: %d\n", result);
system("pause");
return 0;
#include "stdio.h"
#include "stdlib.h"
using namespace std;
int main(){
int n;
int enter_number;
int result = 1;
printf("Enter amount of number: "); scanf("%d", &n);
for(int i = 0 ; i < n; i++){
printf("Enter number: "); scanf("%d", &enter_number);
result = result * enter_number;
}
printf("result: %d\n", result);
system("pause");
return 0;
}