Horje
addition in c Code Example
addition in c
/*Program for adding two numbers*/
#include <stdio.h>
int main(){
	int a, b, sum; //declare the variables that will be used, a will store the first number, b second number and sum, the sum.
    printf("Enter the first number: \n"); //Prompts user to enter the first number.
    scanf("%d", &a);//Accepts input and saves it to variable a
    printf("Enter the second number: \n");
    scanf("%d", &b);
    sum = a + b; //Formular to add the two numbers.
    printf("Sum is %d", sum);
}




C

Related
block a website on mac Code Example block a website on mac Code Example
access the docker container files Code Example access the docker container files Code Example
Picasso Code Example Picasso Code Example
syntax Code Example syntax Code Example
c sleep milliseconds Code Example c sleep milliseconds Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14