Computer Science, asked by nabinxettry332, 12 days ago

write a program to find sum to find sum of two number

Answers

Answered by salmansayyed2009
0

Answer:

Program : C Program to find sum of two numbers

1 #include<stdio.h>

2 int main() {

3 int a, b, sum;

4 printf("\nEnter two no: ");

5 scanf("%d %d", &a, &b);

6 sum = a + b;

7 printf("Sum : %d", sum);

8 return(0);

Explanation:

your answer

Answered by AllenGPhilip
1

Question:

Write a program to find sum to find sum of two number.

Answer:

Let us first look at the structure of a C program

The structure of a C program is

// comments

# include <stdio.h>

# include <conio.h>

Void main()

        {

Variable declaration

Statement Execution

        }

let's write the program

// Program to find the sum of two numbers

# include <stdio.h>

# include <conio.h>

void main()

     {

clrscr ();

int a , b , c

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

c = a + b

printf("%d", c );

getch();

    }

Similar questions