Half Pyramid Using " "
Half Pyramid Using " "
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int rows;
cout<<"\n";
return 0;
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int rows;
cout<<"\n";
return 0;
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
while(k != 2*i-1)
{
cout<<"* ";
++k;
cout<<"\n";
return 0;
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int rows;
cout<<"\n";
return 0;
}
Inverted Pyramid Using Numbers
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int rows;
cout<<"\n";
return 0;
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
cout<<" ";
++count;
while(k != 2*i-1)
++count;
else
++count1;
++k;
count1 = count = k = 0;
return 0;
}
Array Programs
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
cin>> numbers[i];
sum+= numbers[i];
return 0;
#include<iostream>
int main(){
int n, i;
cin>>n;
cin>>n;
cin>> num[i];
sum += num[i];
ave = sum / n;
return 0;
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int i, n;
float arr[100];
cout<<"Enter total number of elements: ";
cin>>n;
cout<<endl;
cin>>arr[i];
arr[0] = arr[i];
return 0;
Standard Deviation
#include <iostream>
#include<cmath>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int i;
float data[10];
return 0;
int i;
sum += data[i];
mean = sum/10;