Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
СПКИ АП КЭП 3
#include <iostream> using namespace std; int main(){ setlocale(LC_ALL,"Russian"); float a,b=7; int i; for(a=1; a<6000; a++){ if(((a+b)*(a+b))!=(a*a+2*a*b+b*b)){ cout << "Равество неверно при a=" << a << " и b=" << b << endl; i++;} b=b+0.25; } cout << "Неверных вариантов " << i << "(" << i/a*100 << "%)" << endl; }
run
|
edit
|
history
|
help
0
ShoppingList
OTHER - Two robots
Barnicle
CPP - Arrays - Ex.3
QP
multiply two numbers (previous)
LIS_NEW
Question 1
Vectores - insertar ordenado e imprimir
sejmie