C & C++ PROGRAMMING
3.18K subscribers
126 photos
6 videos
65 files
76 links
https://t.me/addlist/oJIs6WVKrqBmMWQ1

Hello! I am @Myhurthearts and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills , just let me know!
Download Telegram
Program : Sum on n natural numbers using do while loop.
#include <iostream>

using namespace std;

int main() {
int n,sum=0,i=1;
cout << "Enter the value of n:";
cin >> n;
do{
sum = sum + i;
i++;
}while(i <= n);
cout << "Sum of "<< n << " natural numbers :" << sum;
}
πŸ‘3
Program : Write a function to find maximum of two numbers.
#include <iostream>

using namespace std;
int findMax(int n1 , int n2){
if(n1 > n2){
return n1;
}
return n2;
}

int main() {
int num1,num2;
cout << "Enter any two different numbers:"<<endl;
cin >> num1 >> num2;
int max = findMax(num1,num2);
cout << "Maximum of "<< num1 << " and " << num2 << " is " << max;
return 0;
}
πŸ‘3
Program : Write a function to find maximum of two numbers.
#include <iostream>

using namespace std;
int findMax(int n1 , int n2){
if(n1 > n2){
return n1;
}
return n2;
}

int main() {
int num1,num2;
cout << "Enter any two different numbers:"<<endl;
cin >> num1 >> num2;
int max = findMax(num1,num2);
cout << "Maximum of "<< num1 << " and " << num2 << " is " << max;
return 0;
}
πŸ‘3
🌟 Unlock Your Career in C++ & DSA! 🌟

Are you ready to dive into the world of programming? πŸ’»βœ¨ We have the *ultimate* collection of C++ and DSA courses that can set you on the path to success! πŸš€

πŸ”΅ C++ & C++ with DSA Masterclass
πŸ’‘ ALPHA DSA C++ - Stand Out in the Crowd!
πŸš€ PW C++ DSA - Propel Your Skills!
πŸ”₯ Love Babbar Supreme Batch - Learn from the Best!
πŸ“˜ DSA by Abdul Bari - Expert Guidance!
βœ… NARESH IT DSA - Proven Techniques!
😱 Durgasoft DSA - Grab Your Opportunity!
🀑 Ashok IT - Fun and Engaging Learning!

Don’t miss out on this incredible opportunity to enhance your skills and boost your career! πŸ™Œ

πŸ’¬ Message us now at:
@Myhurthearts
@imabhi3030

🌈 Invest in your future today! 🌈
Which of the following is the correct way to write a comment in C?
Anonymous Quiz
55%
// This is a comment
35%
/* This is a comment */
7%
# This is a comment
3%
-- This is a comment
What is the correct format specifier for printing a float in C?
Anonymous Quiz
9%
%d
80%
%f
9%
%c
4%
%s
Which operator is used to access the value at the address stored in a pointer?
Anonymous Quiz
38%
&
43%
*
11%
@
9%
#
Which keyword is used to define a constant in C?
Anonymous Quiz
23%
constant
8%
define
63%
const
6%
static
What are assignment operator ?
Anonymous Quiz
48%
=
12%
& , || , !=
30%
< , > <= , >=
10%
+ , - , * / , %
πŸ‘1
🌟 Unlock Your Career in C++ & DSA! 🌟

Are you ready to dive into the world of programming? πŸ’»βœ¨ We have the *ultimate* collection of C++ and DSA courses that can set you on the path to success! πŸš€


πŸ”΅
C++ & C++ with DSA Masterclass
πŸ’‘ ALPHA DSA C++ - Stand Out in the Crowd!
πŸš€ PW C++ DSA - Propel Your Skills!
πŸ”₯ Love Babbar Supreme Batch - Learn from the Best!
πŸ“˜ DSA by Abdul Bari - Expert Guidance!
βœ… NARESH IT DSA - Proven Techniques!
😱 Durgasoft DSA - Grab Your Opportunity!
🀑 Ashok IT - Fun and Engaging Learning!
Ineuron All DSA course & 10+ more DSA courses

Don’t miss out on this incredible opportunity to enhance your skills and boost your career! πŸ™Œ


πŸ’¬ Message us now at:
@Myhurthearts
@imabhi3030

🌈 Invest in your future today! 🌈

Join for Free Course βœ… https://t.me/addlist/vnAFuK9rY6FjNjM1
πŸ‘Ž1
Forwarded from πα΄€α΄…α΄€Ι΄ 𝐏ᴀʀΙͺɴᴅᴇ (𝐍ᴀᴅᴀɴ 𝐏ᴀʀΙͺɴᴅᴇ)
Dear Subscribers,
We sincerely apologize for the recent issues on our channel. Unfortunately, due to an illegal bot attack that sent inappropriate content during the night, one of our C programming channels was banned, and another faced serious trouble but has now been recovered.
We take full responsibility for this and deeply regret any inconvenience or discomfort caused. We are working harder to improve our security and prevent this from happening again.
Thank you for your understanding and continued support. πŸ™
πŸ‘3🫑3
Channel name was changed to Β«C & C++ PROGRAMMINGΒ»
C LANGUAGE short important notes
❀4πŸ”₯1