0% found this document useful (0 votes)
142 views1 page

Numere Nule

This C++ code prompts the user to input three floating point numbers, a, b, and c. It then checks if all three numbers are equal to 0, and prints either "Toate numerele sunt nule!" if they are all 0, or "Nu sunt toate numerele nule!" if not all numbers are 0.

Uploaded by

jurjl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views1 page

Numere Nule

This C++ code prompts the user to input three floating point numbers, a, b, and c. It then checks if all three numbers are equal to 0, and prints either "Toate numerele sunt nule!" if they are all 0, or "Nu sunt toate numerele nule!" if not all numbers are 0.

Uploaded by

jurjl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/******************************************************************************

Online C++ Compiler.


Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

/******************************************************************************

Online C++ Compiler.


Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include<iostream>
using namespace std;

int main()

{
float a, b, c;

//citim datele de intrare: a,b si numarul dat

cout << "a=";


cin>>a;

cout<<"b=";
cin>>b;

cout<<"c=";
cin>>c;

//verificam daca numerele sunt nule

if(a==0 && b==0 && c==0)


cout << "Toate numerele sunt nule!";

else
cout<<"Nu sunt toate numerele nule!";

return 0;

You might also like