0 votes
133 views
in C programming by (98.9k points)
edited
C Program to Add Two Numbers

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
#include <stdio.h>
#include <conio.h>
 
int main(){
     
    int firstNumber, secondNumber, sum;
     
   
    printf("Enter First Number: ");
    scanf("%d", &firstNumber);
    printf("Enter Second Number: ");
    scanf("%d", &secondNumber);
     
    
    sum = firstNumber + secondNumber;
    printf("Sum of %d and %d is %d", firstNumber, secondNumber, sum);
    getch();
    return 0;
}

 

Related questions

0 votes
1 answer 160 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 978 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 178 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 141 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)
0 votes
1 answer 102 views
asked Jun 10, 2022 in C programming by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...