C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Simple C Programming Based On Arithmetic Operation
WhatsApp
Shobana J
9y
3.5
k
0
2
25
Blog
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.
People also reading
Membership not found