How to calculate sum

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of programming language?

599


#include { printf("Hello"); } how compile time affects when we add additional header file .

1437


When the macros gets expanded?

804


Distinguish between actual and formal arguments.

599


What is string length in c?

622






Do you know the difference between exit() and _exit() function in c?

618


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

677


Is c procedural or object oriented?

593


Is printf a keyword?

772


Compare and contrast compilers from interpreters.

694


Why is c faster?

602


How many types of errors are there in c language? Explain

583


Simplify the program segment if X = B then C ← true else C ← false

2595


Is flag a keyword in c?

692


If null and 0 are equivalent as null pointer constants, which should I use?

589