দুটি সংখ্যা যোগ করার জন্য একটি প্রোগ্রাম সংখ্যায় নেয় এবং তাদের গাণিতিক যোগফল করে এবং এটি অন্য একটি ভেরিয়েবলে দেয় যা তার যোগফল সংরক্ষণ করে।
উদাহরণ কোড
#include <stdio.h>
int main(void) {
int a = 545;
int b = 123;
printf("The first number is %d and the second number is %d \n", a , b);
int sum = a + b;
printf("The sum of two numbers is %d" , sum);
return 0;
} আউটপুট
The first number is 545 and the second number is 123 The sum of two numbers is 668