Skip to content

Conversation

@Thumati-Arjun
Copy link

No description provided.

Copy link

@Sahrawat1 Sahrawat1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to add positive number so use condition if(a>=0&&b>=0)

Copy link

@manan2707 manan2707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(a>=0&&b>=0)
{
c=a+b;
printf("/n The total is:%d",c);
}
else
printf("/n Enter positive numbers);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants