Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
5.
program ssd;
uses crt,graph;
var a,a1,a2,a3: integer;
begin
clrscr;
writeln('введите трехзначное число');
readln(a);
a1: = a mod 10;
a2: =(a div 10) mod 10;
a3: = a div 100;
writeln(' ',a1,a2,a3);
readkey;
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();
}
Популярные вопросы