Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- main (int argc, char *argv[])
- {
- double X, G,N=0,S=0;
- char check;
- Str7: printf("Vvedite Õ = \n");
- scanf ("%lf" ,&X);
- if (X<=0 ){
- goto str16;
- }else{
- N=N+1,
- S=S+1/X;}
- str16: printf ("eshe vvod x?(y/n)\n");
- check = _getch( );
- if (check =='y') goto Str7;
- else
- G=N/S,
- printf ("G = %lf \n",G ),
- printf ("N = %lf \n",N );
- getchar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement