Skip to main content
Search
Search This Blog
learn coding
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
September 13, 2022
C program( Write C program to add integers and to display the result.)
Write C program to add integers and to display the result.
/* To add two integer variables */
#include<stdio.h>
void main()
{
int num1, num2, sum;
printf("Enter two integers\n");
scanf("%d%d",&num1, &num2);
sum = num1 + num2;
printf("Sum =%d\n",sum);
}
Comments
Popular Posts
September 25, 2022
automate the boring stuff with python book pdf
September 23, 2022
intro to python book (for computer science and data science)pdf download
Comments
Post a Comment