Created
March 2, 2017 07:34
-
-
Save VishalVishwakarma/8091be28a9ee5e9e9154b753229c322e to your computer and use it in GitHub Desktop.
Basic command line input addition program in C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main () | |
{ | |
int a, b, c; | |
printf("Enter two numbers to add\n"); | |
scanf("%d%d",&a,&b); | |
c = a + b; | |
printf("Sum of entered numbers = %d\n",c); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment