#include <stdio.h> int main (void) { float weight;/*вес*/ float value;/*платиновый эквивалент*/ printf("Хотите узнать свой вес в платиновом эквиваленте?\n"); printf("Давайте подсчитаем.\n"); printf("Пожалуйста,введите свой вес, выраженный в футах: "); /*получить входные данные от пользователя*/ scanf("%f", &weigth); /*считаем что родия равна $1700 за тройскую унцию*/ /*14.5833 коффициент для перевода веса, выраженного в фунтах, в тройские унции*/ value = 1700.0 * weight * 14.5833; printf("Ваш вес в платиновом эквиваленте составляет $%.2f.\n" ,value); printf("Вы легко можете стать достойным этого!Если цена платины падает,\n"); printf("ешьте больше для поддержания своей стоимости.\n"); return 0; } Closed due to the fact that off-topic participants Kromster , Harry , Abyx , user194374, Denis Bubnov 9 Feb '17 at 6:30 .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:
- "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Harry, Denis Bubnov
- “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Abyx, Community Spirit
- 6I do not understand! The compiler clearly and accurately wrote - an undeclared identifier. Is it really just too lazy to look at what he is writing, but not too lazy to type the question and add a copy of the screen to it? ... - Harry
|
