👤

VA ROG MULT!!!!! TREBUIE SA O TRIMIT!!!! DAU COROANĂ SI MA ABONEZ!!!​ E PENTRU CLASA a V-a

VA ROG MULT TREBUIE SA O TRIMIT DAU COROANĂ SI MA ABONEZ E PENTRU CLASA A Va class=

Răspuns :

Algoritm pseudocod

x - numar natural nenul

citeste x

scrie 8*x - 4

Algoritm c++

#include <iostream>

using namespace std;

int main(){

unsigned x;

cin >> x;

cout << 8*x-4;

}

Explicatie :

Clasa A : x

Clasa B : 3x

Clasa C : x+3x-4

Total : x+3x+x+3x-4 = 8x-4