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
What are the advantages of union?
Why c is procedure oriented?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Why is c used in embedded systems?
How can I find out the size of a file, prior to reading it in?
what is reason of your company position's in india no. 1.
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is a program flowchart and explain how does it help in writing a program?
FILE PROGRAMMING
Which is best book for data structures in c?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Why calloc is better than malloc?
Can we replace the struct function in tree syntax with a union?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What will the preprocessor do for a program?