int sum = 0;
int n = 0;
while( sum <= 999 ) {
sum += (++n);
}
Its decimal representation does not terminate.
write a c++program by using if statement to read a number and check whether it is positive or negative
see the program
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.)
No.
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.
the number that cannot exceed neni is Q
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.
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? =
Every prime number terminates.
5,000/mm3.
#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(); }