Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to sum two integers A and B input by C language?
How to sum two integers A and B input by C language?
# include & ltstdio.h & gt

int main()

Printf ("Please enter two integers:");

Scanf("%d %d ",&i, & b); //

sum = a+b; //Third, data processing: assign the sum of A and B to SUM;

Printf ("The sum of these two numbers is: %d\n", sum); //

Returns 0; //return;

brief introduction

C language is a process-oriented computer programming language, which is different from object-oriented programming languages such as C++, C# and Java. The design goal of C language is to provide a programming language that can compile and process low-level memory in a simple way, only generate a small amount of machine code, and does not need any running environment support at runtime. C language is faster than assembly language in describing problems, less workload, good readability, easy debugging, modification and transplantation, and the code quality is equivalent to that of assembly language.