ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

offfff
Posted by Fatalizada 27 Oct 2010 18:58
this is my solution, why it is false??? :)



# include <stdio.h>
int main ()
{
 int a,b,c;
 printf ("a:");
 scanf ("%d",&a);
 printf ("b:");
 scanf ("%d",&b);
 c=a+b;
 printf ("a+b=%d",c)
 return 0 ;
 }
Re: offfff
Posted by Proba 4 Nov 2010 09:40
don't use string printf('simple');

# include <stdio.h>
int main ()
{
int a,b,c;
scanf ("%d",&a);
scanf ("%d",&b);
c=a+b;
printf (c);
return 0 ;
}

Edited by author 04.11.2010 09:41
Re: offfff
Posted by amirani 30 Aug 2011 13:09
YOU CAN MAKE IT WITHOUT "C" :) its better :)