How to calculate sum

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is malloc memset faster than calloc?

799


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1716


What’s the special use of UNIONS?

870


write a program to display all prime numbers

1670


What is sizeof array in c?

771


What are types of functions?

760


Why does everyone say not to use gets?

797


Can the size of an array be declared at runtime?

810


How can I get back to the interactive keyboard if stdin is redirected?

882


Is anything faster than c?

777


How can I list all of the predefined identifiers?

757


Why is c so powerful?

879


What is #include stdlib h?

852


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1818


How important is structure in life?

787