Computer Science, asked by Anonymous, 10 months ago

write the program in c language input 2 number and display the sum of two numbers​

Answers

Answered by Anonymous
15

\huge{\underline{\underline{\red{Answer→}}}}

The c language Program for the Sum of two numbers is following :-

• #include<stdio.h>

• #include<conio.h>

• void main ()

• {

• int a,b, sum ;

• clrscr();

• printf("Enter any two numbers");

• scanf("%d%d",%a%b);

• sum = a+b;

• printf("sum = %d",sum);

• getch();

• }

\rule{200}{1}

Note :-

  • The whole code should be in lower case because c language is case sensitive.
  • Don't do mistake in semicolons otherwise code will not run.
  • Be careful , after void main we don't use semicolon.

\rule{200}{1}

C language :-

C language is a computer programming language that was developed in 1972 by Dennis Ritchie. It was developed by modifying earlier programming language BCPL ( Basic Combined Programming language).

\rule{200}{1}

Answered by parveen571
6

Answer:

Addition program in C

int main() { int x, y, z;

printf("Enter two numbers to add\n"); scanf("%d%d", &x, &y);

printf("Sum of the numbers = %d\n", z);

hope it's help u...

pls mark me as brainlist pls.....

Similar questions