Skip to content

Punitcool/C-Program-to-Add-Two-Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

C-Program-to-Add-Two-Numbers

#include <stdio.h>

int main() { int A, B, sum = 0;

// Ask user to enter the two numbers 
printf("Enter two numbers A and B : \n"); 

// Read two numbers from the user || A = 2, B = 3 
scanf("%d%d", &A, &B); 

// Calculate the addition of A and B 
// using '+' operator 
sum = A + B; 

// Print the sum 
printf("Sum of A and B is: %d", sum); 

return 0; 

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published