Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Basics

Home > Programs > Basics

1 / 265

Write a program to find the given number is even or odd.

INPUT: 14
OUTPUT: Even


INPUT: 13
OUTPUT: Odd

Answer:

#include 
using namespace std;
int main()
{
    int n;
    cout > n;
    if ( n % 2 == 0)
        cout 

Asked In :: Wipro Syntel Inc.

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: