Algorithm implementation
5 posters
IITDU Forum :: Academics (BIT) :: Semester 2 :: CSE 201
Page 1 of 1
Algorithm implementation
#include
#include
int main(void)
{
int i=0,k,N,p=0,temp=0;
printf("\nEnter arry size: ");
scanf("%d",and);
int ar[N];
for(i=0;i {
ar[i]=rand()%50;
printf("%4d",ar[i]);
}
for(k=1;k {
for(p=0;p<=(N-1-k);p++)
{
if(ar[p]>ar[p+1])
{
temp=ar[p];
ar[p]=ar[p+1];
ar[p+1]=temp;
}
}
}
printf("\n\nsloting result \n");
for(i=0;i printf("\n");
return 0;
}
[You must be registered and logged in to see this image.]
#include
int main(void)
{
int i=0,k,N,p=0,temp=0;
printf("\nEnter arry size: ");
scanf("%d",and);
int ar[N];
for(i=0;i
ar[i]=rand()%50;
printf("%4d",ar[i]);
}
for(k=1;k
for(p=0;p<=(N-1-k);p++)
{
if(ar[p]>ar[p+1])
{
temp=ar[p];
ar[p]=ar[p+1];
ar[p+1]=temp;
}
}
}
printf("\n\nsloting result \n");
for(i=0;i
return 0;
}
[You must be registered and logged in to see this image.]
bit0218-saeed- Pre-Alpha Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 6
Points : 22
Re: Algorithm implementation
[You must be registered and logged in to see this image.] it's good
bit0218-saeed- Pre-Alpha Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 6
Points : 22
Re: Algorithm implementation
saeed good to see that you are becoming active in forum. Please use proper code tags for posting codes in forum. For example:
- Code:
[code]#include and;stdio.and;
#include and;conio.and;
int main(void)
{
int i=0,k,N,p=0,temp=0;
...
...
}
[/code]
Re: Algorithm implementation
Congrats Saeed I am very happy to see you here. Please force your friends to have this code from this forum, don't give them it in class, tell tehm to take it from forum
Re: Algorithm implementation
BIT0129-tabassum wrote:Congrats Saeed I am very happy to see you here. Please force your friends to have this code from this forum, don't give them it in class, tell tehm to take it from forum
that will be kinda like black mailing you know.
Forcing never works ..
Re: Algorithm implementation
Forcing never works...but if they are not forced to come here, they might not know the usefulness of forum. You also forced us to give posts.
Re: Algorithm implementation
BIT0129-tabassum wrote:Forcing never works...but if they are not forced to come here, they might not know the usefulness of forum. You also forced us to give posts.
:p I don't remember acting like I won't give something because it is already at forum though... when you guys asked nicely :p
Re: Algorithm implementation
You were and are very much active and give all the things in forum...but you show us the way to give post in forum (sometimes forced ) but now we feel, it was a great effort of you
Re: Algorithm implementation
[You must be registered and logged in to see this image.] actually,have done this algorithm in java already.....but was almost the same as mine in java ......very little change
Re: Algorithm implementation
hmm but interestingly, both of you never mentioned which algorithm it is
Re: Algorithm implementation
algorithm is on bubble sorting [You must be registered and logged in to see this image.]
Re: Algorithm implementation
kivabe j forum a post kore?????????janina
amar o onek kisu post korar cilo..........and those r all necessary
amar o onek kisu post korar cilo..........and those r all necessary
BIT0213-forhad- Alpha Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 39
Points : 76
Re: Algorithm implementation
kivabe j forum a post kore?????????janina
amar o onek kisu post korar cilo..........and those r all necessary
Nice decision But why you are asking how to post? The above is a post of you also
If you want to post something, go to that section (like if you want to give a post on UBUNTU,then go to UBUNTU section, if want to give a post on your DLD class then go to 202 or its corresponding section etc). Then click to "new topic". You can then post ypur desire thing
I think you are confused how to upload or give a download link or image in forum, right? Then go to forums tutorial section. Its under General Discussions. You can find some tutorials on uploading/downloading files, giving image, use of emoticons etc.
Explore it and enjoy it!
Re: Algorithm implementation
BIT0129-tabassum wrote:kivabe j forum a post kore?????????janina
amar o onek kisu post korar cilo..........and those r all necessary
Nice decision But why you are asking how to post? The above is a post of you also
He was talking about how to make a new topic -_-!
Re: Algorithm implementation
He was talking about how to make a new topic -_-!
Forhad gave a new topic before I replied here. But I wrote
just for jokingNice decision But why you are asking how to post? The above is a post of you also
But after that..I have told him how to make a new topic
Similar topics
» Huffman Algorithm Implementation
» Implementation of different scheduling algorithm in java
» Algorith implementation to delete a node from a linked list
» Huffman algorithm(periodical implementation): Text data Encryption
» BFS implementation of C++
» Implementation of different scheduling algorithm in java
» Algorith implementation to delete a node from a linked list
» Huffman algorithm(periodical implementation): Text data Encryption
» BFS implementation of C++
IITDU Forum :: Academics (BIT) :: Semester 2 :: CSE 201
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford