Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,646 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,121 people online right now. Registration is fast and FREE... Join Now!




can you give me the codes of finding the maximum and minimum integer f

 
Reply to this topicStart new topic

can you give me the codes of finding the maximum and minimum integer f, finding the maximum and minimum integer from 10 iputs

janozzy
post 20 Aug, 2008 - 10:30 PM
Post #1


New D.I.C Head

*
Joined: 20 Aug, 2008
Posts: 3

PLSS>....ANYONE CAN GIVE THE CODE OF THIS PROBLEM


finding the maximum and minimum integer from 10 iputs!!
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 20 Aug, 2008 - 10:31 PM
Post #2


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

janozzy
post 20 Aug, 2008 - 10:46 PM
Post #3


New D.I.C Head

*
Joined: 20 Aug, 2008
Posts: 3

ohhh...im so sorry... ok
this is my idea... there is always an error,and i can't fid the right codes in these problem!!


CODE
#include <stdio.h>
#include <conio.h>

int main()
{
int counter, num1= 0, num2= 0, num3= 0,num4= 0, num5= 0, num6= 0, num7= 0, num8= 0, num9= 0, num10= 0, max, min;


printf("\n\n\n\n\t\t\t\t Sequence.c\n\n\n");
printf("\t* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ");

printf("\n\n\n\t\t\t\t Enter num1: ");
scanf("%d", &num1);

printf("\n\n\t\t\t\t Enter num2: ");
scanf("%d", &num2);

printf("\n\n\t\t\t\t Enter num3: ");
scanf("%d", &num3);

printf("\n\n\t\t\t\t Enter num4: ");
scanf("%d", &num4);

printf("\n\n\t\t\t\t Enter num5: ");
scanf("%d", &num5);

printf("\n\n\t\t\t\t Enter num6: ");
scanf("%d", &num6);

printf("\n\n\t\t\t\t Enter num7: ");
scanf("%d", &num7);

printf("\n\n\t\t\t\t Enter num8:");
scanf("%d", &num8);

printf("\n\n\t\t\t\t Enter num9: ");
scanf("%d", &num9);

printf("\n\n\t\t\t\t Enter num10: ");
scanf("%d", &num10);

if((num1 < 2) && (num10>1))
{
                 printf("%d is he min", min);
                 }
                 else
                 {
                     printf("%d is the max", max);

                     }  




     getche();
     return 0;

}




thnx by the way...!!
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 20 Aug, 2008 - 10:51 PM
Post #4


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


QUOTE(janozzy @ 21 Aug, 2008 - 02:46 AM) *

and i can't fid the right codes in these problem!!

Are you kidding me? This has got to be one of the most popular projects for C/C++.

Did you search Dream In Code for it? It's been done to death!

Also, rather than making a variable for each & every entry, why don't you use an array?
User is offlineProfile CardPM

Go to the top of the page

janozzy
post 20 Aug, 2008 - 11:11 PM
Post #5


New D.I.C Head

*
Joined: 20 Aug, 2008
Posts: 3

what is an array??? i don't know that..
im just a beginner my teacher assign me this project, and i don't know how to make it so i just combine the codes that i learned but its not working...!!!
can you help me??? ive been trying this for almost i week now...!!
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 20 Aug, 2008 - 11:17 PM
Post #6


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


As provided in the previous post : http://www.dreamincode.net/?cx=00087208500...&sa=Go#1156
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 04:49AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month