hello I have a lab due tonight there is there is four questions, its through C++ syntax, i will provide a file of word document to let you know how it should be submitted thank you
MAE 2360 FALL 2018
HOMEWORK 3
NAME: AHMAD SADAQA
1000 NUMBER:
DATE SUBMITTED: SEPTEMBER 14, 2018
QUESTION 1
THIS QUESTION IS ASKING IS ASKING TO WRITE A PROGRAM THAT WILL ASK
TO YOU ENTER AN INTEGER IN A LINE AND THEN IT WILL TELL YOU
WHETHER THIS NUMBER IS ODD OR EVEN.
QUESTION 2
IN THIS QUESTION IT IS ASKING TO WRITE A CODE THAT WILL PRINT A ODD
INTEGERS STARTING FROM 15 TO 21 IN DIFFERENT LINES.
QUESTION 3
This question is asking to write a code that will computes a certin
summation
CODES
1.
#include
İnt main()
{
İnt num;
Printf(“enter an enteger you want to check: “); \\this loop run one time in
one line
Scanf (“%d”, &num);
İf ((num) ==0)
Prinf(“entered number is even”);\\this loop run one time in one line if
number is even
Else
Prinf(“entered number is odd”); \\ this loop run one time in one line if
number is odd
Return 0;
}
2.
#include
İnt main()
{
İnt i;
For (i=0;i