Computer Science, asked by anuranan1539, 10 months ago

Write a program in c++ to determine whether a number is odd or even using functions

Answers

Answered by madityam188
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
madityam188: hey could you plzz mark this the brainliest :p
akansha1256: okk
Similar questions