Ну вот что здесь неправильно???
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| #include<iostream.h>
#include<conio.h>
main()
{
unsigned long long x1, X2;
int n1, n2;
cout<<"Dva naturalnuh chisla-";
cin>>x1>>x2;
n1=0, n2=0;
while(x1>0)
{
if((x1%10)==9)
n1++;
x1=x1/10;
}
while (x2>0)
{
if((x2%10)==9)
n2++;
x2=x2/10;
}
if(x1<x2) cout<<"2 chislo bilshe";
if(x1=x2) cout<<"rivni";
if(x1>x2) cout<<"1 chislo bilshe";
getch();
} |
|