Addition of two numbers in C.
#include <stdio.h>
int main()
{
int num1, num2, add;
printf("Enter two numbers to add\n");
scanf("%d%d", &num1, &num2);
add = num1 + num2;
printf("Sum of the numbers = %d\n", add);
return 0;
}
OUTPUT
Coding Blocks in Python, C/C++, Java, and other popular programming languages with our easy to follow tutorials, examples, Easy Program in Languages. Coding Blocks is a tutorials site for beginners that covers topics like Java, AWT, JSP, Servlet, JSTL, C, C++, DBMS, Perl, WordPress, SEO. A popular programming and development in blog. Here you can learn C, C++, Java, Python, Android Development, PHP, SQL, JavaScript, .Net, etc. C Programming, C++ Programming, Java Programming, Python Programming.
2nd Program
ReplyDelete