C PROGRAMMING
الذهاب إلى القناة على Telegram
لا توجد بيانات
المشتركون
-824 ساعات
-347 أيام
+8830 أيام
أرشيف المشاركات
🎉 Quiz Alert! 🚀 🗓️ Date: Today 🕘 Time: 9:00 PM 📍 Location: @CODING_WARRIOR 📚 Subject: C, PYTHON , JAVA ,C++,JS
Get ready to test your skills! 💥 Don't miss out on this exciting challenge! 💪✨
Reward 🏆 - 20+ programming language course drive link 🔗 which one you want 😁
Reward 🎉 - Rank 1 😁 SIGMA 5.0 Rank 2-10 Drive Course
Join for more ✅ https://t.me/addlist/vnAFuK9rY6FjNjM1
Repost from 𝐍ᴀᴅᴀɴ 𝐏ᴀʀɪɴᴅᴇ
Guy's are you ready for Programming Quiz competition with Course Rewards
#include <stdio.h>
int main() {
int x = 10;
int *ptr = &x;
*ptr = 20;
printf("%d\n", x);
return 0;
}🌟 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! 🌈
🌟 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!
✨ Exclusive Offer: Get Access for Only ₹100! ✨
Originally valued at ₹10,000, this is your chance to grab it at an unbelievable 1% of the price! 💰
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! 🌈
Important and best notes 😁❤️
Do not forget to React ❤️ to this Message for More Content Like this
Share with your friends 👉 https://t.me/addlist/vnAFuK9rY6FjNjM1
🌟 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!
✨ Exclusive Offer: Get Access for Only ₹100! ✨
Originally valued at ₹10,000, this is your chance to grab it at an unbelievable 1% of the price! 💰
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! 🌈
🎉 Quiz Ka Waqt Hai! 🎉
🌟 Sabhi @CODING_WARRIOR join karein 🌟
Apna knowledge test karein aur maza lein! Course ka 📚✨
🕘 Quiz Shuru Hoga: 9:00 PM ⏰
Category: C++ Quiz Competition 🚀
🏆 Top Ranks:
🥇 Rank 1: ALPHA C++
🥈 Rank 2: PW Skill C++
🥉 Rank 3: Supreme 3.0 C++
🎖 Rank 4-20 : Any course 99% discount 🏆
🔥 Ready, Set, Code! 🔥
Program : Design a number guessing game using while loop.
Take range of numbers from 1 - 10
hard code any number between 1 and 10
Ask user to guess the number after guessing display number of attempts made to guess the number.
cpp
#include <iostream>
using namespace std;
int main()
{
int numberToGuess = 4;
int attempts = 0;
int guess = 0;
while (guess != numberToGuess)
{
cout << "Guess the number between 1 and 10:" << endl;
cin >> guess;
attempts++;
if(guess == numberToGuess){
cout << "You guessed it right in " << attempts << " attempts" << endl;
}
}
cout << "Game ended";
return 0;
}Program: Given an array with numbers 11,12,13,14,15 calculate the sum of elements in array using range based for loop.
cpp
#include <iostream>
using namespace std;
int main(){
int numbers[] = {11,12,13,14,15};
int sum = 0;
for(int number : numbers){
sum = sum + number;
}
cout << "Sum = "<< sum;
return 0;
}