DEV Community

Jafar9442
Jafar9442

Posted on • Updated on

C++ ga kirish

Bugun biz C++ ni o'rganishni boshladik.

Ushbu kodda komentariyaga olishni organasiz:

#include <iostream>
using namespace std ;
int main() {

// cout<< "Salom nima\n";

  /* cout << "Salom nima" <<endl;
  cout << "Salom nima" ; */ 

  cout << "Salom nima" ;

return 0;
  }
Enter fullscreen mode Exit fullscreen mode

Ushbu kodda yozuvni orasini ochishni o'rganasiz


int main() {
cout << "Salom " ; cout << "qalesiz" ;
  return 0;
}
Enter fullscreen mode Exit fullscreen mode

Ushbu kodda yozuvni tagiga tushirishni o'rganasiz

int main() {
  cout << "salom\n" ; cout << "Yaxshimisiz" ;
  return 0;
}
Enter fullscreen mode Exit fullscreen mode

Ushbu kodda yozuvni tagiga tushurishni 2-turi ni o'rganamiz

int main() {
cout << "Salom"  <<endl; cout << "yoqtimi" ;
return 0;
}
Enter fullscreen mode Exit fullscreen mode

@dawroun

Top comments (0)