Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Himanshu832jais commit #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions CPP
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include<iostream>

using std :: cout;
int main()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
if(j%2==0)
cout<<"*";
else
cout<<"&";
}
return 0;
}
17 changes: 17 additions & 0 deletions Java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
public class check
{
public static void main(String ar[])
{
int i,j;
System.out.println("Prime no. between 1and 100");
j=0;
for(i=1;i<=100;i++)
{
for(k=1;k<=i;k++)
if(i%k)
j++;
if(j==2)
System.out.println(i);
}
}
}
1 change: 1 addition & 0 deletions Programs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ You can edit this file for your first pull request.
2. Copy the url of the forked repo from your account and git clone <repo_name>.
3. Edit the README.md file and put your name there.

Himanshu Jaiswal