Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
problem_name_4
#include<iostream> using namespace std; int func(int num); int main(){ int num=6; cout<<"The number is :"<<num<<endl; int a; a=func(num); cout<<a; } int func(int num){ if(num<10){ return num; } else num=num%10; return num; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Find in vector vs unordered_map
general
6 7
Namespace scope qualifier
Derivation of the 0x9E3779B97F4A7C17u constant
bank queue
Maze problem solution
bubble sort
chakib
test
Please log in to post a comment.