This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==0) | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int i,num,count=0; | |
printf ("Enter the to test: "); | |
scanf ("%d",&num); | |
for(i=2;i<=num/2;i++){ | |
if (num%i==0) | |
count++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
long long number; | |
printf("Enter a number to know its largest prime factor: "); | |
scanf("%lld",&number); | |
long long div=2, maxFact; | |
while(number!=0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include_once('db.php'); | |
// Using include_once(), we are including the file db.php By including this file, we automatically get connected to the database. | |
?> | |
<?php | |
$fname=$_POST['fname']; // pass data of firstname field through "POST" method | |
$lname=$_POST['lname']; // pass data of lastname field through "POST" method | |
$email=$_POST['email']; // pass data of email field through "POST" method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include_once('db.php'); | |
// Using include_once(), we are including the file db.php By including this file, we automatically get connected to the database. | |
session_start(); //starting session | |
?> | |
<?php | |
// table name 'sign_up' | |
$email=$_POST['email']; |
OlderNewer