Skip to content

first program written in c, an addition between two numbers!

Notifications You must be signed in to change notification settings

MikixIT/first-software-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

first-software-c

first program written in c, an addition between two numbers!

//
//  main.c
//  first-c-software
//
//  Created by Michael Torres on 29/09/23.
//

#include <stdio.h>

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;
}

About

first program written in c, an addition between two numbers!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages