Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
wellformed number
Recursive Sort Example
C++ does not have reference-to-reference types
HTML Timetable generator.cpp
How to test call member?
Throttle Example using circular queue (push all but 2 less than maxSize; then pop all but 2 less than current size)
SubsequenceArray
overloading
non-template template parameters for container stream insertion: SFINAE
Array-Based Heap Example Starter Code
Please log in to post a comment.