C Language
Subtraction of two numbers in C Language :
#include<stdio.h>
main()
{
//Declare variables
int num1,num2,sub;
//Reading 1st number
printf("\nEnter 1st number:");
scanf("%d",&num1);
//Reading 2nd number
printf("\nEnter 2nd number:");
scanf("%d",&num2);
sub=num1-num2;
printf("\n Subtraction of Num1 & Num2 =%d",sub);
}
Output :
Num1 = 234
Num2 = 200
Result = 34
We Love Hearing from You!
Thank you for reading our post! Your thoughts and opinions are important to us. Please leave a comment below to share your feedback, ask questions, or start a discussion. We look forward to engaging with you!
Note: Comments are moderated to ensure a respectful and positive environment.