write a program to find sum to find sum of two number
Answers
Answered by
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
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
Math,
6 days ago
Chemistry,
6 days ago
English,
12 days ago
Political Science,
12 days ago
CBSE BOARD XII,
8 months ago
Hindi,
8 months ago