Programming in C
Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 2, Problem 6E

Explanation of Solution

Program:

The following program will demonstrate the simple mathematical operation.

//include the header file

#include <stdio.h>

//definition of main method

int main (void)

{

//declare the required variables

int answer, result;

//assign the value to the variable

answer = 100;

//calculate the result

result = answer - 10;

//display the result

printf ("The result is %i...

Blurred answer
Students have asked these similar questions
Q25. What would be the output of the following program?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
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