Programming in C
Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
Expert Solution & Answer
Book Icon
Chapter 3, Problem 8E

Explanation of Solution

Program:

The following program will round off the value to the next largest even multiple of another value:

//include the header file

#include <stdio.h>

//definition of main method

int main (void)

{

//declare the variables

int i, j, ans;

//get the inputs from the user

printf("Enter the value to round off: ");

scanf("%d", &i);

printf ("Enter the value to make i divisible of...

Blurred answer
Students have asked these similar questions
Suppose n is a positive integer.
ii. find the value of N so that y less than 0.00000075.
let n = 1*3*5*....*197*199 (the product of first 100 odd numbers)   find the last 2 digits of n
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT