///////////////////////////////////////////////////
// C++ versus printf (spoiler: C++ wins) //
// (c) 2019 Andrey Kolobkoff <ceo@kolobkoff.biz> //
///////////////////////////////////////////////////
#include<iostream>
#include<iomanip>
///// FUUUU ////////////
#include<cstdio>// FUUUU
////////////////////////
///TODO: delete, use C++
using namespace std;
int main(int nOfArguments, const char* Arguments [])
{
//\\ ~ - --==# [ square equality's solution ] #==-- - ~ \\//
double a=2;
double b=3.5;
double c=1.5;
double D=b*b-4*a*c; //decrimenant's calculating
/////////---------------- skiping some code here ---------///////////////////
//........................................
//\\ ~ - --==# [ C++ RULEZZZzZzZZzzz ] #==-- - ~ \\//
//\\ flawles version, 1 LoC \\//
std::cout << "decrimenant=" << std::fixed << std::setprecision(8) << D << std::endl << std::endl;
//\\ end of C++ \\//
//\\ ~ - --==# [ printf @#$%@#%^!#@$!@#$ ] #==-- - ~ \\//
//\\ dirty ugly %!@#$&&$#% version, 5 LoC \\//
//\\ FUUUUUUUUU /!\ DO NOT TRY REPEAT IT /!\ \\//
printf("decrimenant=");
//printf("%.8d", D); // decimal not ok, allways 0????? (PRINTF MUST DIE)
double cel=int(D); double drob=int((D - cel) * 100000000);
printf("%d.%08d", int(cel), int(drob));
printf("\n");
printf("\n");
//\\ end of printf \\//
/////////---------------- skiping some code here ---------///////////////////
//........................................
return a;//need return any thing
}
Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vCi8vIEMrKyB2ZXJzdXMgcHJpbnRmIChzcG9pbGVyOiBDKysgd2lucykgICAgICAgICAvLwovLyAoYykgMjAxOSBBbmRyZXkgS29sb2Jrb2ZmIDxjZW9Aa29sb2Jrb2ZmLmJpej4gLy8KLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vCgojaW5jbHVkZTxpb3N0cmVhbT4KI2luY2x1ZGU8aW9tYW5pcD4KCi8vLy8vIEZVVVVVI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