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
Why does this code crash?
How can I split up a string into whitespace-separated fields?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is a substring in c?
Explain high-order and low-order bytes.
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
develop algorithms to add polynomials (i) in one variable
What is sizeof array?
What are the features of the c language?
Is r written in c?
What is #error and use of it?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Who invented b language?
Place the #include statement must be written in the program?
Can you subtract pointers from each other? Why would you?