DEV Community

Jafar9442
Jafar9442

Posted on

c++ 4- dars

Ushbu kodda matematik ishlash o'ganamiz.

#include <iostream>
using namespace std;
int main() {
cout << 25 + 5;
return 0;
}
Enter fullscreen mode Exit fullscreen mode

Ushbu kodda int, string o'rganamiz.

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

int yosh = 15;
string ism = "Jafar";

cout << "Salom " << ism << endl;
cout << "men " << yosh << "daman.";

return 0;  
}
Enter fullscreen mode Exit fullscreen mode

Ushbu kodda son iritish o'rganamiz

#include <iostream>
using namespace std;
int main() {
int son;
  cout << "Sonni kiriting ";
  cin >> son;
  cout << "Siz kiritgan son:" << son;

return 0;  
}
Enter fullscreen mode Exit fullscreen mode

@dawroun

Top comments (0)