how to write a program which adds two numbers without using
semicolon in c

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesnt this code work?

621


What is #include conio h?

598


What is the general form of #line preprocessor?

592


What is data type long in c?

627


When should I declare a function?

628






What is a pragma?

672


What is malloc and calloc?

578


What kind of structure is a house?

562


How do we open a binary file in Read/Write mode in C?

685


How do you declare a variable that will hold string values?

672


Explain what is the difference between functions abs() and fabs()?

628


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

666


What is nested structure in c?

616


Why is c used in embedded systems?

616


What is calloc in c?

667