MAKE PSEUDOCODE #include int main() { int number ,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,Sum; float Average; std::cout<<"\n\n"; std::cout<<"\tEnter first number:"; std::cin>>n1; std::cout<<"\tEnter second number:"; std::cin>>n2; std::cout<<"\tEnter third number:"; std::cin>>n3; std::cout<<"\tEnter fourth number:"; std::cin>>n4; std::cout<<"\tEnter fifth number:"; std::cin>>n5; std::cout<<"\tEnter sixth number:"; std::cin>>n6; std::cout<<"\tEnter seventh number:"; std::cin>>n7; std::cout<<"\tEnter eigth number:"; std::cin>>n8; std::cout<<"\tEnter ninth number:"; std::cin>>n9; std::cout<<"\tEnter tenth number:"; std::cin>>n10; Sum = (n1+n2+n3+n4+n5+n6+n7+n8+n9+n10); std::cout<<"\n\n"; Average=Sum/10.0; std::cout<<"\tSum of 10 Numbers =" <
MAKE PSEUDOCODE
#include<iostream>
int main()
{
int number ,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,Sum;
float Average;
std::cout<<"\n\n";
std::cout<<"\tEnter first number:";
std::cin>>n1;
std::cout<<"\tEnter second number:";
std::cin>>n2;
std::cout<<"\tEnter third number:";
std::cin>>n3;
std::cout<<"\tEnter fourth number:";
std::cin>>n4;
std::cout<<"\tEnter fifth number:";
std::cin>>n5;
std::cout<<"\tEnter sixth number:";
std::cin>>n6;
std::cout<<"\tEnter seventh number:";
std::cin>>n7;
std::cout<<"\tEnter eigth number:";
std::cin>>n8;
std::cout<<"\tEnter ninth number:";
std::cin>>n9;
std::cout<<"\tEnter tenth number:";
std::cin>>n10;
Sum = (n1+n2+n3+n4+n5+n6+n7+n8+n9+n10);
std::cout<<"\n\n";
Average=Sum/10.0;
std::cout<<"\tSum of 10 Numbers =" <<Sum;
std::cout<<"\tAverage of 10 Numbers:"<<Average;
return 0;
}
Step by step
Solved in 2 steps