// Swastik pattern
#include<iostream>
using namespace std;
int main() {
int n;
cout << "Enter Number: ";
cin >> n;
for(int k = 1; k <= n * 2 - 1; k++) {
for(int l = 1; l <= n * 2 - 1; l++) {
if(k == n || l == n || k == 1 && l >= n || k <= n && l == 1 || k >= n && l == n * 2 - 1 || k == n * 2 - 1 && l <= n)
cout << " *";
else
cout << " ";
}
cout << endl;
}
return 0;
}
/*1 2 3 4
1 2 3
1 2
1*/
1 2 3
1 2
1*/
#include<iostream>
using namespace std;
int main() {
int n;
cout<<"Enter range:";
cin>>n;
for(int i=n; i>=1; i--) {
for(int j=1; j<=i; j++) {
cout<<j<<" ";
}
cout <<endl;
}
return 0;
}
/*4
3 4
2 3 4
1 2 3 4*/
3 4
2 3 4
1 2 3 4*/
#include<iostream>
using namespace std;
int main() {
int n;
cout<<"Enter range:";
cin>>n;
for(int i=n; i>=1; i--) {
for(int j=i; j<=n; j++) {
cout<<j<<" ";
}
cout <<endl;
}
return 0;
}
👍1
Ab aap log apna khud ka Compiler bot bana sakte hain easily 🥳🥳🔥
Apne manpasand name aur username se
Create your own
By using @CloneCompiler_bot
See full details: Click Here
Apne manpasand name aur username se
Create your own
By using @CloneCompiler_bot
See full details: Click Here
// Event Emitter class
#include <iostream>
#include <functional>
#include <vector>
using namespace std;
class EventEmitter {
private:
struct FuncObj {
string mesType;
std::function<void(int)> callback;
};
vector<FuncObj> funcs;
public:
EventEmitter() {}
void on(string mesType, std::function<void(int)> callback) {
funcs.push_back(FuncObj{ mesType, callback });
}
void emit(string mesType, int obj) {
for (auto& funobj : funcs) {
if (funobj.mesType == mesType) {
funobj.callback(obj);
}
}
}
};
void callback(int a) {
cout << "hi" << a;
}
int main() {
EventEmitter e;
e.on("message", callback);
e.emit("message", 7);
return 0;
}
❤1
Make your 30 numbers final in c/c++ 👇
https://t.me/C_Codes_pro/254
All that program can be converted in c++ just replacing
stdio.h to iostream
And
printf to std::cout
https://t.me/C_Codes_pro/254
All that program can be converted in c++ just replacing
stdio.h to iostream
And
printf to std::cout
👍1
Now it's discussion group is public
Join @Cpp_group_pro
Join @Cpp_group_pro
Select your group/channel/service
t.me/Sid_info/69
t.me/Sid_info/69
// Check leap year
#include <iostream>
bool isLeapYear(int year) {
if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
return true;
} else {
return false;
}
}
int main() {
int year;
std::cout << "Enter a year: ";
std::cin >> year;
if (isLeapYear(year)) {
std::cout << year << " is a leap year." << std::endl;
} else {
std::cout << year << " is not a leap year." << std::endl;
}
return 0;
}
👍3
// multiple numbers adder
#include<iostream>
using namespace std;
class Adder{
public:
int num[100];
int n=0;
void entNum(void);
void numShow(void);
void printCal(void);
};
void Adder::entNum(void){
int i=0;
char c;
for(;i<50;i++){
cout<<"Enter "<<i+1<<"s number : ";
cin>>num[i];
n++;
if(i<1)
continue;
cout<<"Are you want add more type y or n ";
cin>>c;
if(c=='n')
break;
} }
void Adder::numShow(void){
cout<<"\n\nYou entered ";
for(int i=0;i<n;i++){
cout<<num[i]<<" ";
}}
void Adder::printCal(void){
int i=0;
int res=0;
for(;i<n;i++){
res=res+num[i];
}
cout<<"\nTotal = "<<res;
}
int main (){
Adder add;
cout<<"Number Adder\n"<<endl;
add.entNum();
add.numShow();
add.printCal();
return 0;
}
👍2
Create compiler bot in mobile
Run any language codes
In hindi:
Ab laptop ko kar do Tata bye bye gya 😂
https://youtu.be/352o8B9IikI?si=OSrhBU0mcFEkqILA
Run any language codes
In hindi:
Ab laptop ko kar do Tata bye bye gya 😂
https://youtu.be/352o8B9IikI?si=OSrhBU0mcFEkqILA
YouTube
How to create compiler bot and run c/c++ java python node js ts from mobile as server in termux
How to create compiler bot and run c/c++ java python node js ts from mobile as server in termux
Create own compiler bot in 2 minutes
Overview:
In this video, I exaplained You about how to use clone Compiler bot to create your own compiler bot.
keys:…
Create own compiler bot in 2 minutes
Overview:
In this video, I exaplained You about how to use clone Compiler bot to create your own compiler bot.
keys:…
👍1
If you want learn js for website development 👇join it
@react_next_js
For any problems in js site development feel free to ask questions 😊👇
@reactjs_nextjs_group
@react_next_js
For any problems in js site development feel free to ask questions 😊👇
@reactjs_nextjs_group
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Free Study Resources everything join more ✅ https://t.me/addlist/c3QWwWR-Iw4xMDNl
Subscribe Our New channel for coding, designing, hacking and computer related everything 😁
👉✅ https://youtube.com/@CODEBOMBB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Free Study Resources everything join more ✅ https://t.me/addlist/c3QWwWR-Iw4xMDNl
Subscribe Our New channel for coding, designing, hacking and computer related everything 😁
👉✅ https://youtube.com/@CODEBOMBB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
👩💻 Welcome to @CodesSnippet! 🔫
Join us for daily snippets of coding👩💻 knowledge! 💻
Here, you'll find 👀 bite-sized pieces of code, programming tips, and tricks to level up your coding skills! 💻
Stay updated on the latest trends in the tech world and engage with fellow coders 💗 in our vibrant community! 🌐💬
Let's crack the coding 👩💻 together and bring your projects to life!
⭐️👨💻
Lang : Python , Java, Javascript, c++ and many more.
#CodeSnippet
#ProgrammingFun
Jᴏɪɴ ᴜs :- @CodesSnippet
Join us for daily snippets of coding👩💻 knowledge! 💻
Here, you'll find 👀 bite-sized pieces of code, programming tips, and tricks to level up your coding skills! 💻
Stay updated on the latest trends in the tech world and engage with fellow coders 💗 in our vibrant community! 🌐💬
Let's crack the coding 👩💻 together and bring your projects to life!
⭐️👨💻
Lang : Python , Java, Javascript, c++ and many more.
#CodeSnippet
#ProgrammingFun
Jᴏɪɴ ᴜs :- @CodesSnippet
Chatting ke liye group
@isc_chat
Ab study group ke bajay is group me off topics discuss karna
Aur jo active hoga vaha use admin bana dunga
@isc_chat
Ab study group ke bajay is group me off topics discuss karna
Aur jo active hoga vaha use admin bana dunga
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...
Topics Covered:
Watch it first at morning 8:30 (Live)
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...
Topics Covered:
00:00:00 - Intro of video
00:02:26 - Introduction to node js
00:05:59 - Setup node js environment
00:07:33 - Installing Visual studio Code IDE
00:08:39 - Installing Node js
00:12:58 - Understand about node folder setup
00:15:18 - Basic function of js console.log
00:19:25 - Basic Datatypes of js (Start of basic javascript)
00:25:15 - Variables and Constant in js
00:33:45 - Js Object and List (Array)
00:53:08 - Javascript Operators
01:02:24 - if else Control statement in js
01:08:00 - while and for loops in js
01:17:01 - functions in javascript
01:21:23 - Understand asynchronous javascript
01:26:52 - Understand why async/await in js
01:31:01 - Understand js callback functions
01:36:38 - Use of built in modules in js (example: fs module)
01:40:32 - installing external libraries and fetching data (example axios)
01:48:14 - Anonymous functions in js
01:51:38 - Some of my words for why you learnt this js
Watch it first at morning 8:30 (Live)
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
👍3
Node js full video watch now live
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...