* / % + -bugungi darsimiza

charos1mm

Charos1mm

Posted on December 20, 2022

* / % + -bugungi darsimiza

Biz bugun / ni organdik.

int A= 7;
int B= 3;

cout << 3 / 10 << endl;  
cout << 3 % 10 << endl;  

return 0;

}
Enter fullscreen mode Exit fullscreen mode

Bizlar bo'lishdan foiz chiqarishni organdik.

int son;
cin>> son; 
cout << son /10000 << '!'; 
cout << son / 1000 % 10 << '!';
cout << son /100 % 10 << '!';
cout << son / 10% 10 << '!';
cout <<son % 10 ;
return 0;
}
Enter fullscreen mode Exit fullscreen mode

Kunlarni chiqarishni ham organdik.

int main4(){
int N;
cin >> N ;
cout << "Sun Mon Tue Wed Thu Fri Sat" << endl;
cout << setw(3) << N;
N = N % 31 + 1;
cout << setw(4) << N;
N = N % 31 + 1;
cout << setw(4) << N;
N = N % 31 + 1;
cout << setw(4) << N;
N = N % 31 + 1;
cout << setw(4) << N;
N = N % 31 + 1;
cout << setw(4) << N;
N = N % 31 + 1;
cout << setw(4) << N;
return 0;
}
Enter fullscreen mode Exit fullscreen mode

@dawroun

💖 💪 🙅 🚩
charos1mm
Charos1mm

Posted on December 20, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

* / % + -bugungi darsimiza
beggin * / % + -bugungi darsimiza

December 20, 2022

C++ga kirish
beggin C++ga kirish

December 14, 2022