Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C++
c++ modulo make it give only positive numbers
Eugene O
Programming language:
C++
2021-05-02 00:18:19
0
Q:
c++ modulo make it give only positive numbers
illiterate
Code:
C++
2021-04-15 11:48:50
int mod(int a, int b) { return (a+b)%b; }
0
Tags
number
make
Related
sum of two numbers c++
sum of 2 numbers in cpp function
add two numbers in c++
how to calculate inverse trigonometric values in c++
c++ sum up numbers
calculate sum in c++
sum of 2 numbers in cpp
c++ program for addition of two numbers using functions
cpp cout more than 1 value
c++ sum of all numbers up to a number
sum of n natural numbers in c
New to Communities?
Join the community