int sum = 0;
int n = 0;
while( sum <= 999 ) {
sum += (++n);
}
Its decimal representation does not terminate.
When you multiply a positive number by a number greater than one, the result is a larger positive number. This is because the operation effectively increases the original number. For example, multiplying 3 by 2 results in 6, which is greater than 3. Thus, the product will always exceed the original positive number.
write a c++program by using if statement to read a number and check whether it is positive or negative
see the program
No.
No, -3 is a rational number. All fractions are rational along with all decimals that terminate or repeat. (this applies to both positive and negative numbers.)
We just learned this in math class today :) A whole number is any positive, negative number without a decimal; it doesn't repeat or terminate. It's just a number. Like 58 or even 343737. Hope I helped.
Yes, any positive number is a number that doesn't have a (-) behind it (-20; -23.67; -45.45454...), and is not zero (0). Any repeating number (see 3rd negative example) is irrational, no matter what its sign. Irrational numbers also include numbers (decimals, specifically) that don't repeat, but don't stop. Numbers that don't terminate include pi. Pi, as it is, is proof of a positive irrational number.
Every prime number terminates.
user-generated content: disclaimer report abuse = Write a program which will rise any number X to a positive power nobtain values of X and n from user? =
the number that cannot exceed neni is Q
#include<stdio.h> #include<conio.h> void main() { int no; clrscr(); printf("Enter a Number:"); scanf("%d",&no); if(no>0) printf("Your Number is Positive"); else printf("Your number is Negative"); getch(); }