Recent in Fashion

Best Seller Books

An algorithm to find the sum of two numbers in C Language

C Language


An algorithm to find the sum 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 :





Subscribe Our Newsletter

avatar
"i am a web developer. you can find me all over internet with my single username @iamvishveshs ✨."

Related Posts

2 Comment

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.

Article Top Ads

Parallax Ads

POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED

Article Center Ads

Article Bottom Ads

Code Copied!