Question: #include #include using namespace std; int main () { int i,odd,count=0,n,sum=0; /initialize variables cout <

#include #include using namespace std; int main () { int i,odd,count=0,n,sum=0; /initialize variables cout<<"Even numbers between 2 to 40 "; for(i=2;i<=40;i++){ //loop from 2 to 4 if(i%2 == 0){ //check if even ,true then print count++; sum++; std::cout.width(5); std::cout << std::right <=3;i--){ if(i%3==0){//check if multiple of 3 count++; sum++; std::cout.width(5); std::cout << std::right <=2){ std::cout.width(10); std::cout << std::right << p; p=p/2; x++; if(x==8){ //after 8 values print in next line x=0; cout<<" "; } c++; } int num; cout<<" Loop until user enters valid integer i.e not a negative "; cout<<"Enter an integer : "; cin>>num; while(num<0){ cout<<"Invalid entry please re-enter a number :"; cin>>num; } cout<<"You have entered "<

return 0; }

how to write psedue code?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!