How to calculate sum
Answers were Sorted based on User's Feedback
Answer / deepanshu dubey
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int a,b,c;
printf("Enter two numbers\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("%d\n",c);
}
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / avinash jadhav
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int num1,num2,sum;
clrscr();
printf("\nEnter the 2 numbers\n");
scanf("%d%d",&a,&b);
sum=num1+num2;
printf("The sum of the two number is %d\n",sum);
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
what is the difference between auto and static keywords
1 Answers cDot, College School Exams Tests, TCS,
can any one tel me wt is the question pattern for NIC exam
What is the modulus operator?
Is main a keyword in c?
What is modifier & how many types of modifiers available in c?
What is the meaning of ?
Write a factorial program using C.
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,
How are strings stored in c?
What is the difference between GETS();AND SCANF();
What is the maximum length of an identifier?
Difference between C and Embedded C?