Write a program to sum of two integers.

 

#include<stdio.h>

#include<conio.h>

int main()

{

int integer1,integer2,sum;

printf(“Enter the integers:”); //in intverted comas we write the words which want to show on screen

scanf(“%d%d”,&integer1,&integer2); //scanf is used for scan the integers by user

sum=(integer1+integer2);

printf(“%d+%d=%d”,integer1,integer2,sum);

getch();

return 0; //return 0 is used when we used int type in function

}