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

Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

844


What is a macro, and explain how do you use it?

823


How do you determine whether to use a stream function or a low-level function?

911


What is the hardest programming language?

900


What is dynamic variable in c?

784


Write a program to print all permutations of a given string.

937


Can stdout be forced to print somewhere other than the screen?

841


What is getch?

843


Is Exception handling possible in c language?

1792


What is function in c with example?

835


Can you mix old-style and new-style function syntax?

859


Which is better oop or procedural?

809


How do we declare variables in c?

792


If you know then define #pragma?

869


Can a void pointer point to a function?

764