Write a program in c++ to determine whether a number is odd or even using functions
Answers
Answered by
1
Class Roman
{
public static void main( )
{
int n;
if(n%2!=0)
System.out.println("ods");
else
if(n%2==0)
System.out.println("even");
}
}
akansha1256:
pastry hehaaa
Similar questions
India Languages,
7 months ago
Science,
7 months ago
Psychology,
1 year ago
Chemistry,
1 year ago
Social Sciences,
1 year ago