Календарь
« Июнь 2018 » |
Пн |
Вт |
Ср |
Чт |
Пт |
Сб |
Вс |
| | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
|
Главная » 2018 » Июнь » 24
Write program segments that accomplish each of the following:
a) Calculate the integer part of the quotient when integer a is divided by integer b.
b) Calculate the integer remainder when integer a is divided by integer b.
c) Use the program pieces developed in a) and b) to write a function that inputs an integer between 1 and 32767 and prints it as a series of digits, with two spaces between each digit. For example, the integer 4562 should be printed as:
...
Читать дальше »
Категория:
C (задачи)
|
Просмотров:
330
|
Добавил:
alex
|
Дата:
24.06.2018
|
Use techniques similar to those developed in Exercises Square of Asterisks, Displaying a Square of Any Character to produce a program that graphs a wide range of shapes.
Используйте методику, аналогичную развитой в упражнениях Square of Asterisks, Displaying a Square of Any Character, для создания программы, которая рисует разнообразные фигуры.
#include <stdio.h>
void isSquare( char*);
void isRectangle( char*);
void isTriangle( char*);
int main()
{
int var;
char* fillCharacter;
printf("%s",
...
Читать дальше »
Категория:
C (задачи)
|
Просмотров:
311
|
Добавил:
alex
|
Дата:
24.06.2018
| |
|