В СИ:
# include <stdio.h># include <conio.h>void main () {
clrscr();
int x,y,c,k;
printf("Vvedite x \n");
scanf("%d",&x);
printf("Vvedite y \n");
scanf("%d",&y);
printf("Vvedite c \n");
scanf("%d",&c);
k=x+(y/(2*c));
printf("Otvet: %d \n",k);
getch();
}
QBasic
Screen 7
Input x
Input y
Input c
S=x+y/2*c
Print "x+y/2*c="; S
End
В СИ:
# include <stdio.h>
# include <conio.h>
void main ()
{
clrscr();
int x,y,c,k;
printf("Vvedite x \n");
scanf("%d",&x);
printf("Vvedite y \n");
scanf("%d",&y);
printf("Vvedite c \n");
scanf("%d",&c);
k=x+(y/(2*c));
printf("Otvet: %d \n",k);
getch();
}
QBasic
Screen 7
Input x
Input y
Input c
S=x+y/2*c
Print "x+y/2*c="; S
End