Информатика, опубликовано 06.06.2020 22:29
Определите значение переменной a после выполнения фрагмента алгоритма 1)15 2)18 3)2 4)3
a := 20; b := 1; a := (a + b) div 3; b := a – 2 * b; a := a – b;
Ответ оставил: Гость
2)#include<iostream>#include <stdlib.h>#include<math.h>using namespace std;int main(){int c=0, b;do{
b = pow( c, 2); c++; cout << b << " ";} while(c<51); system("pause");
}
1)#include<iostream>#include <stdlib.h>#include<math.h>using namespace std;int main(){int c=0, b;
while(c<51){
b = pow( c, 2); c++; cout << b << " ";} system("pause");
}
3)#include<iostream>#include <stdlib.h>#include<math.h>using namespace std;int main(){int c=0, b;
for(c; c<51; c++){
b = pow( c, 2); cout << b << " ";} system("pause");
}
b = pow( c, 2); c++; cout << b << " ";} while(c<51); system("pause");
}
1)#include<iostream>#include <stdlib.h>#include<math.h>using namespace std;int main(){int c=0, b;
while(c<51){
b = pow( c, 2); c++; cout << b << " ";} system("pause");
}
3)#include<iostream>#include <stdlib.h>#include<math.h>using namespace std;int main(){int c=0, b;
for(c; c<51; c++){
b = pow( c, 2); cout << b << " ";} system("pause");
}
Информатика, опубликовано 09.01.2019 16:01
Информатика, опубликовано 09.01.2019 16:01
Информатика, опубликовано 09.01.2019 16:01
Информатика, опубликовано 09.01.2019 16:01