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

How main function is called in c?

636


What are the types of data files?

737


What is s or c?

606


How to delete a node from linked list w/o using collectons?

2097


explain what is fifo?

645






Is main a keyword in c?

646


What are loops c?

632


Explain what does a function declared as pascal do differently?

653


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

741


can anyone suggest some site name..where i can get some good data structure puzzles???

1654


Is a house a mass structure?

652


What are pointers in C? Give an example where to illustrate their significance.

758


What does typeof return in c?

647


What is wrong with this code?

705


What is operator precedence?

653