In this program we will learn how to enter data in array and multiply the index of array.
The code is given below:
//Code starts
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a;
int array[a];
int multi;
multi=1;
cout<<"enter size of array"<<endl;
cin>>a;
for(int i=1;i<=a;i++)
{
cout<<"enter number for multi"<<endl;
cin>>array[i];
multi=multi*array[i];
}
cout<<"multi is ="<<multi<<endl;
getch();
}
//Code ends
OUTPUT:
Wednesday, 1 March 2017
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
In this program we will learn how to insert and delete data in a stack. Stack works on the principal of LIFO last in first out so new data ...
-
#include <iostream> using namespace std ; int main (){ int n , i ; float num [ 100 ], sum = 0.0 , average ; ...
-
In this program we will learn how to search a number from indexes of array. The code is given below. //Code Starts #include <ios...
-
In this program we will learn how to take exponential of a variable e.g 10^2. The code is given below. //Code starts #include<i...
-
In this program we will learn how to calculate sum, multiply and average of numbers stored in array. The code is given below. //Code...
-
#include<iostream> using namespace std; int main(){ //Using const int for array size const int row=2,col=2; // if not use const e...
-
In this program we will learn, how to call a structure inside a function and insert its values outside the main().. The code is given belo...
-
// This program calculates the average of any number of numbers. // Using the for structure #include <iostream> using namespace ...
-
#include <iostream> using namespace std ; int main () { // an array with 5 rows and 2 columns. int a [ 5 ][ 2 ] = ...
-
#include<iostream> using namespace std; int main() { int number, reverse = 0; cout<<"Input a Number to Reverse and press E...
All posts
-
►
2019
(1)
- ► 03/10 - 03/17 (1)
-
▼
2017
(32)
- ► 07/02 - 07/09 (8)
- ► 05/14 - 05/21 (3)
- ► 03/05 - 03/12 (1)
- ▼ 02/26 - 03/05 (6)
- ► 02/19 - 02/26 (2)
- ► 02/12 - 02/19 (12)
-
►
2016
(36)
- ► 10/23 - 10/30 (1)
- ► 06/12 - 06/19 (4)
- ► 05/29 - 06/05 (1)
- ► 05/22 - 05/29 (1)
- ► 05/15 - 05/22 (1)
- ► 05/08 - 05/15 (11)
- ► 05/01 - 05/08 (8)
- ► 04/24 - 05/01 (9)
I Am
Welcome
Tags
2D array
6 in 1
array
array program
ASCII
binary
binary search
bubble sort
c++
C++ code to print right triangle shape using nested for loops
c++ program
C++ Program of Array to Calculate Average of Numbers Using Arrays
C++ Program of Array to Calculate Sum and Average of given Numbers
C++ Program of Array to Find How Many Integers are Equal or Greater than 10
C++ Program of Array to Sort 10 Integers in Descending Order
C++ Program Of Calculator
C++ Program of detecting a keypress and ASCII code
c++ program of for loop
C++ Program of Multiplying Two Matrices using 2D Array
C++ Program of sorting values in array
C++ Program of Starric using for loop
C++ Program of Two Dimensional Array
C++ Program to add two matrix using 2-D arrays
C++ Program to Find Even and Odd Elements in Array
C++ Program to Find Greatest Common Divisor (GCD) of two numbers
C++ Program to Find Max and Min Number in Array
C++ Program to Find Reverse of Number
C++ program to find the Area and Perimeter of a Rectangle:
C++ Program to Sort Distorted Array
calculator
circle
circular queue
class
creation
deletion
even odd
example program
exponential
for loop
function
functions
GCD Program
hero formula
inheritance
insertion
insertion sort
linked list
nested for loop
oop
pointer
polymorphism
prime number
prime number program in c++
printing
program
queue
recursion
recursive function
reverse
Reverse of Number
selection sort
sequential search
sort
stack
starric
structure
template
Trees
triangle
two dimensional array
0 comments:
Post a Comment