https://github.com/mikixit/first-software-c
first program written in c, an addition between two numbers!
https://github.com/mikixit/first-software-c
addition c command-line
Last synced: 12 days ago
JSON representation
first program written in c, an addition between two numbers!
- Host: GitHub
- URL: https://github.com/mikixit/first-software-c
- Owner: MikixIT
- Created: 2023-09-29T15:20:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T15:25:10.000Z (almost 3 years ago)
- Last Synced: 2025-10-30T14:54:11.275Z (8 months ago)
- Topics: addition, c, command-line
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# first-software-c
first program written in c, an addition between two numbers!
```c
//
// main.c
// first-c-software
//
// Created by Michael Torres on 29/09/23.
//
#include
int main(void) {
int num1, num2, sum;
printf("Hey, let's do some addition\n ");
printf("Enter the first number: ");
scanf("%d", &num1);
printf("Alright, enter the second number now: ");
scanf("%d", &num2);
sum=num1+num2;
printf("Okay, the sum of %d and %d is: %d\n", num1, num2, sum);
printf("\nHave a good day! by Michael :)\n\n");
return 0;
}
```