musbat sonining oxirida uchinchi raqam o’zlashtirilsin


Download 225.97 Kb.
Sana05.01.2022
Hajmi225.97 Kb.
#205726
Bog'liq
xusan ladfarov 2-lab




Masala: Butun turdagi h o’zgaruvchiga berilgan k (k>=100) musbat sonining oxirida uchinchi raqam o’zlashtirilsin (masalan,agar k=130985 bo’lsa, h=9)

Natija:

#include

#include

using namespace std;

int main()

{

int h, k, x, y;



cout<<" k>=100 ;"<

cout<<"k = "; cin>>k;

x=k/100;

h = x % 10;

cout<

return 0;

}


Download 225.97 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling