Skip to content
Open

hi #8

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions labtest.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
#include<bits/stdc++.h>
using namespace std;
//write a user defined function to find first N prime numbers;
//the function should be named like : youname_yourid;
void mohammadtalha-web(int n)
{
int count = 0;

/*
example:
for(int num = 2; count < n; num++)
{
bool prime = true;

void nishat_90(int n){
//your code here;
for(int i = 2; i <= num/2; i++)
{
if(num % i == 0)
{
prime = false;
break;
}
}

if(prime)
{
cout << num << " ";
count++;
}
}
}
*/

int main(){

Expand Down