DEV Community

saodat19
saodat19

Posted on

O'zgaruvchilar

integer doim butun son Z to'plam
float kasr son
True 1
False 0
input output stream
cout council output
cin council input
endl( "...\n" endline qator tugaganini bildiradi
Alt+Shift+Down
String " "
stringni ichiga olib yozsek matn db qabul qiladi
// bu belgi komentariya izoh qoldirish
\ bu slash
cin dan kegin >>
cout dan keyin <<

include

using namespace std;

int main()
{
int a;
cin >> a; // cin kiritilgan o'zgaruvchilani shartida nima berilgan bo'lsa misol hozir int ga moslab ko'radi mos kelsa oladi

cout << "a\n";

return 0;
} javob a

include

using namespace std;

int main()
{
int a = 10, b = 3 ;
float c = 2.9 ;

cout << a/c ;

return 0;
} javob 3.44828

**#include

using namespace std;

int main()
{
int a = 10 , b = 3;
cout << a % b; // % bu berilgan sonni hisoblab qoldig'ini oladi

return 0;
} javob 1_**_

include

using namespace std;

int main()
{
int a,b ;
cin >> a >> b ;
cout << " a * b = " << a * b;

return 0;
}

javobga 30 73 ni kiritaman
a * b = 2190

CHAR belgi character
faqat bitta belgini sig'diradi

include

using namespace std;

int main()
{
char a , b ; // char __ o'zgaruvchining turi ;
a, b ___ o'zgaruvchining nomi
cin >> a >> b ;
cout << a << b;

return 0;
}

**#include

using namespace std;

int main()
{
char a;
cin >> a;
cout << char(a-32);

return 0;
}
javob
c kiritsam
C (katta C kelb chqdi)
**

Top comments (0)