Program Assignment
Program Assignment
#include <iostream>
int main() {
double a, b, c;
cout << "Enter the sides of the rectangular box (a, b, c): ";
double volume = a * b * c;
return 0;
1_Output:
Surface Area: 52
Volume: 24
2. Sum and Average of 10 Integers
#include <iostream>
int main() {
sum += numbers[i];
return 0;
2_Output:
Enter 10 integers: 1
5
6
Sum: 51
Average: 5.1
3. Volume of a Cylinder
#include <iostream>
#include <cmath>
int main() {
cout << "Enter the radius and height of the cylinder: ";
return 0;
}
3_Output :
Volume: 251.327
#include <iostream>
int main() {
double fahrenheit;
return 0;
4_Output:
#include <iostream>
int main() {
return 0;
5_Output:
30
#include <iostream>
return 0;
6_Output:
15
#include <iostream>
#include <cmath>
int main() {
double radius;
cout << "Enter the radius of the circle: ";
return 0;
7_Output:
Area: 1256.64
Circumference: 125.664
#include <iostream>
#include <cmath>
int main() {
double number;
cout << "Enter a number: ";
return 0;
8_Output:
Enter a number: 5