DEV Community

feyyame1
feyyame1

Posted on

* / + = % Ma'limot !

*Foizli bo'lish usuli uchun *

int main (){
cout << 3 / 10 << endl;
  cout << 3 % 10 ;
  }  
Enter fullscreen mode Exit fullscreen mode

Masalada undovni (!) ni chiqarish uchun

 cin >> son;
  cout << son /10000 << '!';
 cout << son / 1000 % 10 << '!'; 
cout << son /100 % 10 << '!';
cout << son/ 10 % 10 << '!';
  cout << son %10;

Enter fullscreen mode Exit fullscreen mode

*sonni markazga o'tkazish uchun *

int son ; 
  cin >> son;
   cout << 100 % 10;

Enter fullscreen mode Exit fullscreen mode

@dawroun

Top comments (0)