Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #include<stdio>
- #include<stdlib>
- #include<conio>
- #pragma hdrstop
- //---------------------------------------------------------------------------
- #pragma argsused
- int main(int argc, char* argv[])
- {
- double Wert[10];
- int I=0;
- printf("10 Werte ein/auslese Prog\n\n");
- while(I!=10)
- {
- I++;
- printf("%i.Wert: ",I);
- do
- {
- scanf ("%lf",&Wert[I]);
- if((Wert[I]>10.0)||(Wert[I]<0.0))
- {
- printf("!!!WERTEBEREICH UEBERSCHRITTEN!!!\n\n");
- printf("%i.Wert: ",I);
- }
- }
- while ((Wert[I]>10.0)||(Wert[I]<0.0));
- }
- printf("\n\n< Weiter mit beliebiger Taste >");
- getch();
- clrscr();
- I=0;
- printf("\n\n");
- while(I!=10)
- {
- I++;
- printf("%i.Wert: %lf\n",I,Wert[I]);
- }
- getch();
- return 0;
- }
- //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement