[ create a new paste ] login | about

Link: http://codepad.org/GHWYnCV0    [ raw code | output | fork ]

C++, pasted on Jan 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <cstdlib>
#include <iostream>
using namespace std;
 
int main()
{
    char A[7] = {0};
    cout<<"Vvedite nomer : ";
    cin>>A;
    if(A[0]+A[1]+A[2] == A[3]+A[4]+A[5])
        cout<<"Chislo schastlivoe"<<endl;
    else
        cout<<"Chislo ne schastlivoe"<<endl;
    //system("pause");
    return 0;
}


Output:
1
Vvedite nomer : Chislo schastlivoe


Create a new paste based on this one


Comments: