write a 'c' program to sum the number of integer values

Answer Posted / koushik sarkar

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter a integer no:-"); scanf("%d",&a);
printf("Enter a Integer no:-"); scanf("%d",&b);
printf("Sum= %d",a+b);
getch();
}

Is This Answer Correct ?    13 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a 'null pointer assignment' error?

934


Explain heap and queue.

785


How are Structure passing and returning implemented by the complier?

909


What does c in a circle mean?

758


What does malloc () calloc () realloc () free () do?

773


What is nested structure in c?

788


How can I remove the trailing spaces from a string?

805


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1748


What are data structures in c and how to use them?

883


Explain what is page thrashing?

819


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

902


Compare and contrast compilers from interpreters.

889


Does c have function or method?

787


Tell us bitwise shift operators?

791


What are the 5 organizational structures?

782