Making a Table 2 or Three Using Even and odd numbers

0

I need a program which shows the number is even or odd and print the table of 2 if the any even number we enter and when we enter the any odd number the program print the table of three please help as soon as possible

All we can do is to answer (if we know) specific questions, asked upon specific code/logic related errors. I see only a statement and a request, not a question.
Please formulate a question regarding a specific part of your assignment that is giving you a hard time, and also post some code too.

P.S. We do not solve homeworks/assignments, it's your job.

we don't do your homeworks , its your duty to complete it.
but as a help i can suggest the following structure , you can use to solve your assignments.

if(n is even)
{
//write code to print the table for 2
}
else
{
//write code to print the table for 3
}

to check if n is even or odd , you can use % with 2(n%2) and check if the result of the expression is equal to 0 then its even otherwise odd.
And nothing extra i can do for you , if you fail to prove what you done so far to solve your assignment.

include <iostream.h> main() { int num,x; cout<<"Please enter a number"; cin>>num; if(num%2==0) { cout<<"Numbers are even"; } else { cout<<"numbers are odd"; } cout<<"Please enter a number you want the table of...!!!"; cin>>num; x = 1; while(x<=10) { cout<<"\n"<<<<" numx "<<x<<" = "<<x*num; x++ ; } system("pause"); }

here is the code but the program print every number table which is odd or even

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.

This is the result of previous question answered :

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...