#include<iostream>
#include<random>
int main()
{
std::default_random_engine generator;
std::uniform_int_distribution<int> distribution (1,9);
std::cout << "Array : ";
int a[10];
int* p = a;
do {
std:: cout << (*p = distribution (generator)) << '+';
} while (++p != a + 10);
int sum = 0;
p = a;
while (p != a + 10)
sum += *p++;
std::cout << "\b=" << sum << std::endl;
}
i cant write
What is the assembly program to generate a geometric series and compute its sum The inputs are the base root and the length of the series The outputs are the series elements and their sum?
Variables, arrays, objects, and pointers are common elements that require storage during program execution. Each of these elements holds data that needs to be accessed or modified during the running of the program.
program to find maximum of two numbers using pointers
They don't.
#include<stdio.h)
The verb for computer is compute.Other verbs are computes, computing and computed."I am computing"."We have computed the program""I like to compute".
* * * * * * * * * * write the c++ program and show me brifily?
sorry
nahi malum
{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.
Write a c program to compute the surface area and volume of a cube