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

What are the 5 types of organizational structures?

0 Answers  


compare array with pointer?

1 Answers  


What kind of structure is a house?

0 Answers  


What are pointers really good for, anyway?

0 Answers  


inline function is there in c language?

4 Answers  






Can you please explain the difference between syntax vs logical error?

0 Answers  


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

0 Answers  


int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?

2 Answers  


What is the value of h?

0 Answers  


What does sizeof int return?

0 Answers  


What is a method in c?

0 Answers  


What is self-referential structure in c programming?

0 Answers  


Categories