C PROGRAMMING
Kanalga Telegramβda oβtish
Ma'lumot yo'q
Obunachilar
-824 soatlar
-347 kunlar
+8830 kunlar
Postlar arxiv
π 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;
}