- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

**(i)** For any integer $a$, what is $(-1)\times a$ equal to?

**(ii)** Determine the integer whose product with $(-1)$ is

**(a)** $-22$

**(b)** $37$

**(c)** $0$

**To do:**

We have to

(i) Find $(-1)\times a$, for any integer $a$.

(ii) Determine the integer whose product with $(-1)$ is

(a) $-22$

(b) $37$

(c) $0$

**Solution:**

(i) For any integer $a$, $(-1)\times a$ is equal to $-a$ as shown below.

$( -1 )\times a=-a$ [where $a$ is any integer]

(ii)

(a) Let $x$ be the required integer

This implies,

$x \times (-1)=-22$

$-x=-22$

$x=22$

The integer whose product with $(-1)$ is $-22$ is $22$.

(b)

Let $x$ be the required integer.

This implies,

$x\times (-1)=37$

$-x=37$

$x=-37$

The integer whose product with $(-1)$ is $37$ is $-37$.

(c)

Let $x$ be the required integer.

This implies,

$x\times (-1)=0$

$-x=0$

$x=0$

The integer whose product with $(-1)$ is $0$ is $0$.

- Related Questions & Answers
- Count of pairs from 1 to a and 1 to b whose sum is divisible by N in C++
- Show that the following grammar is LR (1) S → A a |b A c |B c | b B a A → d B → d
- Find integer within +/- 1 from a column in MySQL
- Maximizing the elements with a[i+1] > a[i] in C++
- Print first k digits of 1/n where n is a positive integer in C Program
- Maximum positive integer divisible by C and is in the range [A, B] in C++
- Reorder integer except for value 0 with MySQL?
- Find if there is any subset of size K with 0 sum in an array of -1 and +1 in C++
- Minimum positive integer divisible by C and is not in range [A, B] in C++
- C++ program to find nearest integer for which the number and its digits sum gcd is greater than 1
- Find the minimum positive integer such that it is divisible by A and sum of its digits is equal to B in Python
- Count of words whose i-th letter is either (i-1)-th, i-th, or (i+1)-th letter of given word in C++
- Count pairs from two linked lists whose product is equal to a given value in C++
- JavaScript Strings: Replacing i with 1 and o with 0
- Count of occurrences of a “1(0+)1” pattern in a string in C++
- A product array puzzle (O(1) Space) in C++?

Advertisements