TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Simple C Programming Based On Arithmetic Operation
Shobana J
Jul 02, 2016
3.3
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will learn about simple C programming based on an arithmetic operation.
asmdpro.zip
Introduction
I have explained in this article about an arithmetic operation in a simple manner and in a way you can clearly understand so as to learn it.
Software Requirements
Turbo C++ OR C
Programming
#include <stdio.h>
int
main()
{
int
first, second, add, subtract, multiply;
float
divide;
printf(
"Enter two integers\n"
);
scanf(
"%d%d"
, &first, &second);
add = first + second;
subtract = first - second;
multiply = first * second;
divide = first / (
float
)second;
printf(
"Sum = %d\n"
,add);
printf(
"Difference = %d\n"
,subtract);
printf(
"Multiplication = %d\n"
,multiply);
printf(
"Division = %.2f\n"
,divide);
return
0;
}
Explanation
Here I have upload the program exactly how the operation is performed, in a simple manner.
Output
Conclusion
Thus the program has been created succesfully.
C
Arithmetic Operation
Next Recommended Reading
OOPs Dynamic Binding Program Using C++