How to calculate sum
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
what is a void pointer?
What is the difference between typedef struct and struct?
Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above
why do some people write if(0 == x) instead of if(x == 0)?
How can you allocate arrays or structures bigger than 64K?
What are local variables c?
do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.
a=5 a=a++/++a
What is the restrict keyword in C?
Write a program to compare two strings without using the strcmp() function
42 Answers Accenture, Arba Minch University,
What are 3 types of structures?
Explain about block scope in c?