Суббота, 14.06.2025, 10:44
Приветствую Вас Гость | RSS
Меню сайта
Вход на сайт
Поиск
Календарь
«  Июнь 2018  »
Пн Вт Ср Чт Пт Сб Вс
    123
45678910
11121314151617
18192021222324
252627282930
Статистика

Главная » 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