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 |
What are the compilers of JAVA and .NET Programming languages?
what is delimiter in sas ?
Find out the list of roles which gives access to GUI activities? thanks in advance
Is CTS company do serious backgroung check?
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.
What Is The Difeerence Between C & C++
When we use Windows authentication mode
how do we provide security for web services
what is the difference between a looping statement and a decision statement
what is diff bet ref variable & instance of class
swap two number wthout using third variable