WAP to print all prime nos between 1 to 100 without using user
input...pls reply within few hours...
Answer / ashwek
/// Using C++
#include<iostream.h>
#include<conio.h>
int main(){
int temp;
cout<<" Prime number between 1 to 100 : ";
for(int i=2; i<=100; i++){
temp=0;
for(int j=2; j<i; j++){
if(i%j==0) temp = 1;
}
if(temp==0) cout<<i <<", ";
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
how to display xisheet in list box in c# .net
What is a programming language?
2. What do you mean by DHCP?
Hi Friends , i am very new in VB 6.0 Any body can able to help me ? i need interview question and answer vb 6.0 . please send honeysukumar@yhaoo.com
What are the advantages of Server Controls over HTML/ASP Controls.
What are events in smartforms?
what is the abap/4
MOV.CB 007H,ADCON1 MOVE.CT 001H,_OPTION_REG_7 MOV.CB 007H,CMCON
What is dialog programming?
why we use abstract word in abstract window toolkit in java language.
what are the difference between C,C++and Java
Which language they use during interview?
0 Answers State Bank Of India SBI,