“cout” Kode Jawaban

operator c cin

//Akbarali saqlagan C++ bo'yicha cin operatoriga ta'rif
#include <iostream>
using namespace std;
int main (){
  int a;
  cout << "Kattaroq sonni yozing: ";
  cin >> a;
  int b;
  cout << "Tepadaginga nisbatan kichik bo`lgan son(qiymatni) yozing: ";
  cin >> b;
  cout << "Birinchi kiritgan soningizdan ikkinchi kiitgan soningiz " << a-b << " marta katta ekanligi ma'lum bo'ldi.\n";
  return 0;
}
Shadow

output C.

#include <iostream>

int main(){
  std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Effective Octopus

cout

#include <iostream>
#include <format>

int main() 
{
    std::cout << std::format("Hello, {}!\n", "world");
}
Old-fashioned Osprey

cout

#include<iostream>
using namespace std;

int main()
{
    std::cout << "cout without using the std namespace" << std::endl;
    cout << "cout while using the std namespace" << endl;
}
Half_Blaked

Jawaban yang mirip dengan “cout”

Pertanyaan yang mirip dengan “cout”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya