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

When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

0 Answers   HCL,


How can I implement a delay, or time a users response, with sub-second resolution?

0 Answers  


How do you initialize function pointers? Give an example?

3 Answers  


What are the applications of c language?

0 Answers  


write a c program to print "Welcome" without using semicolon in the whole program ??

15 Answers   Infosys, TCS,






i have a written test for microland please give me test pattern

0 Answers   Microland,


How do you determine whether to use a stream function or a low-level function?

0 Answers  


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

0 Answers  


Which of these statements are false w.r.t File Functions? i)fputs() ii)fdopen() iii)fgetpos() iv)ferror() A)ii B)i,ii C)iii D)iv

6 Answers   Accenture,


Please write the area of a RIGHT ANGLED TRIANGLE.

1 Answers  


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

0 Answers  


AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?

13 Answers   HCL,


Categories