Questions: 1 978

Answers by our Experts: 1 850

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a program based on the attached 3 outputs below. Using a while loop is required in your program



Sample output 1:


Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choices: e


.........This program is for Multiplication of even numbers........



Enter a number:20


1 * 2=2


2 * 4=8


3 * 6=18


4 * 8=32


5 * 10= 50


6 * 12=72


7 * 14=98


8 * 16=128


9 * 18=162


10 *20= 200




Sample output 2:



Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choice:o



.....This program is for Multiplication of Odd numbers....



Enter a number:10



1 * 1=1


2 * 3=6


3 * 5=15


4 * 7=28


5 * 9=45




Sample output 3:


Choices


E or e for Even


O or o for Odd


X or X for Exit



Enter your choice:X


Your program will now exit.




Create a program based on the sample output using the do-while loop.


--Choices--

1-EVEN 2-ODD 3-EXIT


Enter Your Choice Above : 2


Enter a Number : 16

Odd Numbers : 1 3 5 7 9 11 13 15


Enter Your Choice Above : 1


Enter a Number : 8

Odd Numbers : 2 4 6 8


Enter Your Choice Above : 2


Enter a Number : 0


Your Program is about to exit...

Thank You!


Create a program based on the sample output using while loop.


--Choices--

E or e for Even

O or o for Odd

X or x for Exit


Enter your choice : X

Your Program will now exit.


Create a program based on the sample output using while loop.


Enter a Number : 10


1*1 = 1

2*3 = 6

3*5 = 15

4*7 = 28

5*9 = 45


Write a function that takes a positive integer as input and return the leading digit in its decimal representation

Write a C program to print weight and height of a person using typedef.


Input : Weight: 50.5


Height: 7.2


Output : Weight: 50.5


Height: 7.2

You are given an array of N non-negative integers: A1, A2, ..., AN. An alternating subsequence is a subsequence in which the indices of any two consecutive elements differ by exactly two in the original array. That is, if Ai1, Ai2, ..., Aik is some subsequence, then for it to be an alternating subsequence, (i2 - i1 = 2), (i3 - i2 = 2), and so on should all hold true. Among all alternating subsequences, find the one which has maximum sum of elements, and output that sum.

Create a C program that the user can make a selection.


Sample Output :

E or e for Even

O or o for Odd

X or x for Exit

A Character that is not on the selection print Error!


Print 1 to 10 and multiply it to 1 to 20 even numbers using while loop in c.


Sample Output :

1 * 2 = 2

2 * 4 = 8

3 * 6 = 18

4 * 8 = 32

5 * 10 = 50

6 * 12 = 72

7 * 14 = 98

8 * 16 = 128

9 * 18 = 162

10 * 20 = 200


Write a C Program to implement circular queue using dynamic memory allocation. Set the


initial capacity of the queue as 2. The capacity should double whenever the queue is Full.


Through proper output show insertion, deletion and doubling the size of the queue.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS