how to write a program which adds two numbers without using
semicolon in c
Answers were Sorted based on User's Feedback
Answer / g.rajitha
void main()
{
int a,b;
if(printf("Enter two numbers"))
if(scanf("%d %d",&a,&b))
if(printf("%d",(a+b)))
}
| Is This Answer Correct ? | 1 Yes | 10 No |
Answer / g.rajitha
#include<iostream.h>
void main()
{
int a,b;
if(cout<<"Please enter two numbers : ")
if(cin>>a>>b)
if(cout<<"Sum = "<<(a+b))
}
| Is This Answer Correct ? | 5 Yes | 16 No |
What is the difference between struct and union in C?
What are the different types of pointers?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is C language Terminator?
List the difference between a While & Do While loops?
How many loops are there in c?
c program to manipulate x=1!+2!+3!+...+n! using recursion
What should malloc(0) do?
how to find sum of digits in C?
write a program to display all prime numbers
Why is event driven programming or procedural programming, better within specific scenario?
What is the difference between fread and fwrite function?