DEV Community

Charos1mm
Charos1mm

Posted on

* / % + -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

Top comments (0)