Yahoo Web Search

1. 1 to 100 prime numbers ?

...c=0,i,j,n; for(j= 1 ;j<= 100 ;j++) { scanf("%d",&j); for(i= 1 ;i<=j;i++) { a=n%i...quot;%d \t"); } } The prime numbers will be printed with a tab space.

3 Answers · Computers & Internet · 17/11/2006

2. Write a C++ program to find prime numbers between 1 to 100 .?

...prime "; getch(); } you can take the hint from above program to print prime no.s from 1 to 100 .

8 Answers · Computers & Internet · 09/07/2010

3. i want a program from 1 to 100 prime numbers ?

...here goes your code: //comment to make you more clear.. limit = 100 ; // arbitrary search limit for (i = 2; i..._prime[i] = true // assume all numbers are prime at first } for (n...

1 Answers · Computers & Internet · 22/01/2007

4. Write a program in C++ that prints the numbers from 1 to 100 .?

...;< "Would you like to play again? y or n: "; cin >> answer...; endl; } while (num >= 1 && num <= 100 && answer == 'y'); system("PAUSE...

3 Answers · Computers & Internet · 24/10/2011

5. Write a program that will display the even numbers from 1 to 100 .?

...;iostream.h> #include<conio.h> void main() { int i; for(i= 1 ;i<= 100 ;i++) { if(i%2==0) { cout<<i<&...

4 Answers · Computers & Internet · 06/11/2012

6. C++ program that will print the sum of even numbers from 1 to 100 .?

...int main(void) { ....const int n1 = 1 ; ....const int n2 = 100 ; ....int sum = 0; ....int i...sum += i; // add it to sum ........} ....} ....cout <...quot;The sum of even numbers from " <&...

4 Answers · Computers & Internet · 06/12/2009

7. i need a simple program from printing odd and even numbers from 1 to 100 ?

...main(String arg[]) { int s=0; System.out.print("Even Numbers are"); for(int i= 1 ;i<= 100 ;i++) { if(i%2==0) { System.out.println(i); } } System.out.println...

2 Answers · Computers & Internet · 18/12/2008

8. Create a program that displays the numbers from 1 to 100 with increment operator.?

... namespace std; int main() { int i; for(i= 1 ;i<= 100 ;i++) { cout << i...use\n or endline if you want the next number to be on the next line } system("PAUSE"...

4 Answers · Computers & Internet · 14/04/2011

9. How can I add numbers 1 to 100 to a combo box in visual basic2005?

... a For..Next loop to add the numbers to the ComboBox. Here is the... i As Integer = 1 To 100 ComboBox1.Items.Add...

1 Answers · Computers & Internet · 14/03/2011

10. Display all numbers between 1 to 100 ?

Change the "if" to "for" as in for (i= 1 ; i<= 100 ; i++) { system.out.println(i); }

3 Answers · Computers & Internet · 01/11/2007