Skip to content

Create Adding two integers positive test case#1

Open
Thumati-Arjun wants to merge 1 commit intoPerthCharles:masterfrom
Thumati-Arjun:patch-1
Open

Create Adding two integers positive test case#1
Thumati-Arjun wants to merge 1 commit intoPerthCharles:masterfrom
Thumati-Arjun:patch-1

Conversation

@Thumati-Arjun
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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
Copy Markdown

@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