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

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More C Interview Questions

Write a program to check armstrong number in c?

0 Answers  


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


can we print any string without using terminator?

2 Answers   Infosys, TCS,


What is merge sort in c?

0 Answers  


Is there any possibility to create customized header file with c programming language?

0 Answers  






Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


Is array a primitive data type in c?

0 Answers  


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

0 Answers   Persistent,


Find string palindrome 10marks

5 Answers   Honeywell, Infosys, Riktam, Roland,


who is first prime minister in india??

8 Answers   Wipro,


What is the value of c?

0 Answers  


What is static and auto variables in c?

0 Answers  


Categories