Logo

dev-resources.site

for different kinds of informations.

1 chi dars

Published at
8/19/2024
Categories
cpp
replit
Author
muhammadyusuf_b21347171bb
Categories
2 categories in total
cpp
open
replit
open
Author
25 person written this
muhammadyusuf_b21347171bb
open
1 chi dars

biz oldingisafar shu kodlarda nimabulishini organdik.

#include <iostream>
Enter fullscreen mode Exit fullscreen mode

bu kodlar kutubhonadeb ataladi.

#include <iomanip>
Enter fullscreen mode Exit fullscreen mode

bu kodlar kutubhonadeb ataladi.

#include <cmath>
Enter fullscreen mode Exit fullscreen mode

bu kodlar kutubhonadeb ataladi.

using namespace std;
Enter fullscreen mode Exit fullscreen mode

bu kod stdni har cout dan oldin .

int main(){
Enter fullscreen mode Exit fullscreen mode

int soni kirg'zishdan oldin quyiladi.

int a;
Enter fullscreen mode Exit fullscreen mode

bu int a bildirip turadi.

cin >> a;
Enter fullscreen mode Exit fullscreen mode

bu kod esa intdan keyin quyiladigon kod.

 string son (a > 19 ? "1" : "0");
Enter fullscreen mode Exit fullscreen mode

bu kod esa agar int songa belgilangan sondan utibketsa bildishnoma uchun quyiladi.

  cout  << son;
Enter fullscreen mode Exit fullscreen mode
return 0;
Enter fullscreen mode Exit fullscreen mode

bu kod kod larni 0marta qaytarddeb buyruqberadi.

}
Enter fullscreen mode Exit fullscreen mode

bu kod esa int main dankeyin kod tugaganini bildiradi.

BIRINCHI KOD TUGADI
Enter fullscreen mode Exit fullscreen mode

.

IKKINCHIKOD BOSHLANDI
Enter fullscreen mode Exit fullscreen mode
    #include <iostream>
Enter fullscreen mode Exit fullscreen mode

bu kodlar kutubhonadeb ataladi.

using namespace std;
Enter fullscreen mode Exit fullscreen mode

bu kod stdni har cout dan oldin .

int son ;
Enter fullscreen mode Exit fullscreen mode

kod yozishdanoldin yoziladi .

cin >> son;
Enter fullscreen mode Exit fullscreen mode

.

cout << (son > 0 ?(son % 2 == 0 ? "musbat fuft":"manfiy "))
Enter fullscreen mode Exit fullscreen mode

bu kod esa agar int sonigakirg'zilgan sonni ogohlantiribturadi.

replit Article's
30 articles in total
Favicon
How to use proxy IP to deal with dynamically changing anti-crawler challenges?
Favicon
Calling all Replit users!
Favicon
Baby meets AI: Creating a health tracking ๐Ÿ‘ถ web-app in 15 min with an AI agent ๐Ÿค–.
Favicon
The Fall of a Community
Favicon
FINDING REPLIT ALTERNATIVE FOR LEARNING CODE
Favicon
I'm come back.
Favicon
Changes to Replit's Starter Plan: Announced Friday
Favicon
Replit Tutorial: How to Code Like a Pro with AI Agents
Favicon
1 chi dars
Favicon
Destiny or Coincidence: Based on Shannon Perry s Experiment.
Favicon
So I completed Replit's free 100 Days of Python course
Favicon
Replit's 100 Days of Code (Days 2-12)
Favicon
AIโ€™s a global affair. But Googleโ€™s Project isnโ€™t there?
Favicon
How to make martech POCs easier
Favicon
่งฃๆฑบ Replit ็Œœ้Œฏๅฅ—ไปถๅฎ‰่ฃ็š„ๅ•้กŒ
Favicon
@TopDown On Replit
Favicon
The State of Replit
Favicon
Implement SEO Cron Jobs with Replit and SerpApi Code
Favicon
How to .go : For
Favicon
How to .go
Favicon
Building a Mortal Kombat Website
Favicon
What i knew about react!(These are the things that I've found challenging so far on my react journey.)
Favicon
How to code almost every programming language in your phone ?
Favicon
Installing ffmpeg in repl.it
Favicon
CRM app with Node.js, Replit, and MongoDB
Favicon
Building a Discord bot with Node.js and Replit
Favicon
Packaging software with Nix
Favicon
Playing with REMIX
Favicon
Best cloud IDEs?
Favicon
Build a smart contract oracle with Solidity, Node.js, and Replit

Featured ones: