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

We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.


Care to do it for me?


Input


1. First integer


2. Second integer


Output


The first line will contain a message prompt to input the first integer.

The second line will contain a message prompt to input the second integer.

The last line contains the remainder.


Enter·the·first·integer:·10

Enter·the·second·integer:·3

Remainder·=·1


We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.



Care to do it for me?



Input



1. First integer



2. Second integer



Output



The first line will contain a message prompt to input the first integer.


The second line will contain a message prompt to input the second integer.


The last line contains the remainder.



Enter·the·first·integer:·10


Enter·the·second·integer:·3


Remainder·=·1

3. Leftovers




by CodeChum Admin





We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.





Care to do it for me?





Input





1. First integer





2. Second integer





Output





The first line will contain a message prompt to input the first integer.




The second line will contain a message prompt to input the second integer.




The last line contains the remainder.





Enter·the·first·integer:·10




Enter·the·second·integer:·3




Remainder·=·1

Write a loop that will calculate the sum of every third integer beginning with i = 2 (i-e. calculate the sum of 2+5+8+11+) for all values of i that are less than 100, Write the loop in



two ways:



(1) Using a do---- while statement.



() Using a for statement.

Write a loop that will calculate the sum of every third integer beginning with i = 2 (i-e. calculate the sum of 2+5+8+11+) for all values of i that are less than 100, Write the loop in




two ways:




(1) Using a do---- while statement.




() Using a for statement.

Write a C program which will take numbers from the keyboard until the sum of these numbers is greater than 100 . On monitor display the sum min and average of numbers


Write a C program which will take an integer number from keyboard and display its digits on separate lines on monintor using a loop


write a C program which will print following pattern on monitor

*

**

***

****

*****

******


Write a C program which will take numbers from the keyboard until user enter the negative number and display the max of these numbers

using

-while loop

-do while loop


Representatives




The principal of a school wants to speak with some of the students to as the overall development including studies. Mont of the teachers were selecting the toppers of their classes but Mr. Sam thought of an idea to select the bunch of students who did not have much difference in their marks so that he gains the reputation of a teacher who teaches well to the whole class and not just to a bunch of brilliant students.You are required to help Mr Sam in selecting K students that can speak with the principal from his class. You need to return an integer array representing the marks of the selected students sorted in ascending order.








Output Specification:




Return an integer array containing the marks of K selected students sorted in ascending order








Example 1:




input1: 10




input2: {950,477, 55, 602,881,302,859,438,551,382}




input3: 1



Output: {950}







LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS