Mavzu: 'Alifbo 🤔'

abdukarim0126

abdukarim0126

Posted on March 9, 2024

Mavzu: 'Alifbo 🤔'

C++ DASURLASH TILIDA MEN SIZGA IFTUSHUNTIRIB BERAMAN

.
.
.
.
.
.
.
.
.
.
.
.
.
.
👇

#include <iostream>

using namespace std;

int main()
 {
    char ch;

    // Foydalanuvchidan belgi olish
    cout << "Bir belgi kiriting: ";

    cin >> ch;

    // Belgi alifbo harfi bo'lsa 1 ni, aks holda 0 ni chiqarish
    if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
 {
        cout << "1" << endl; // Alifbo harfi
 }
 else 
{
        cout << "0" << endl; // Alifbo harfi emas
    }

    return 0;
}

Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
abdukarim0126
abdukarim0126

Posted on March 9, 2024

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

Sign up to receive the latest update from our blog.

Related

round функция.
cpp round функция.

October 29, 2024

do while loop
programming do while loop

November 2, 2024

I'm a beginner
productivity I'm a beginner

September 23, 2024