- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Environmental Science
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to find sum of two numbers using C Language
C program to find sum of two numbers
#include <stdio.h>
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
}
Output:
Enter two no: 5 6
Sum : 11
- Related Questions & Answers
- How to reverse a given number using C
- Write C Program to Delete duplicate elements from an array
- Write a ‘C’ Program to compute the sum of all elements stored in an array using pointers
- Write C Program to Find Smallest Element in Array in C Programming
- Write C program to find Exponent Power Series
- How to calculate gross salary of a person using C Program
- Write C Program to Find Largest Element in Array in C Programming
- How to find gretest in 3 number using C Programming
- How to Calculate Area of Circle using C Programming
- How to find sum of two numbers using C Language
- Find Second largest element in an array using C Programming
- How to reads customer number and power consumed and prints amount to be paid using C
- How to print hello world using C Language
- How to Solve Second Order Quadratic Equation Using C Program
- Recursive program to linearly search an element in a given array using C
- How to calculate sum of 5 subjects and find percentage Using C Program
Advertisements
ads