Lec 27: Loops in C++ | for loop in detail | C++ Tutorials for Beginners

preview_player
Показать описание

******************************************
Connect & Contact Me:

********************************************

More Playlists:

#loops #programming #cplusplus
Рекомендации по теме
Комментарии
Автор

Hi my name is Kabir from Nigeria. I love your teachings though I'm still a beginner 😁. Your teachings are beginners friendly and easy to understand keep it up 👍.

abdulkabiroyekan
Автор

int n, sum=0;
cout << "Enter a number:";
cin >>n;
for (int i= 1; i<=n; i++)
{
sum+=i;
}

Girish-frpz
Автор

#include <iostream>
using namespace std;

int main() {
int total_number = 0;
int i;

for (i = 1; i <= 15; i++) {
total_number = total_number + i;
}

cout << "Your total number is: " << total_number << endl;
return 0;
}


Output is 120 🙂

Ssos
Автор

Love from Nigeria Ma'am. You got am EXCELLENT teaching skills.

THANK You for this great Lecture. Keep it Up, please!🙏

davidemmanuel
Автор

int sum = 0;
for(int i = 0;i<=5;i++)
{
cout<<i<<endl;
sum = sum +i;
}
std::cout<<"sum is "<<sum<<endl;

return 0;
}

wengangdit
Автор

Mam aapko bahut din se dhund rhi thi finally mil gyi aap 😊

Cuteriya.rk.
Автор

Tq so much mam ❤️
Praying u all happinesd n success in life❤️

shrur
Автор

Hat's off 🙌 for your dedication
Python and c++ at same time

riteshbisht
Автор

Your videos are highly helpful...lots of love and respect to you 💕❤️❤️

lokeshraybarman
Автор

#include<iostream>
using namespace std;
int main()
{
int i=0, count=0, sum=0;
for(i=1;i<=5;i++)
{
cout<<i<<"st iteration"<<endl;
sum=sum+i;
}
cout<<sum<<endl;
}

i.d.f
Автор

Assignment 01:

#include<iostream>
using namespace std;

int main()
{
int sum = 0;
for(int i=1; i<=5; i++)
{
sum += i;
}

cout<<"The sum is: "<<sum<<endl;
return 0;
}

Answer: 15

Assignment 02:

#include<iostream>
using namespace std;

int main()
{
for(int i=10; i<=10; i++)
{
cout<<i<<endl;
}
return 0;
}

Answer: 10

Assignment 03:

#include<iostream>
using namespace std;

int main()
{
for(int i=10; i==10; i++)
{
cout<<i<<endl;
}
return 0;
}

Answer: 10

AsifAliShishir
Автор

From Kenya very well following, thamk you for the help mam we LOVE you

dukemochama
Автор

#include <iostream>
using namespace std;
int main(){
int sum=0;
for(int i = 1; i<=5; i++)
{
sum = i +sum;
}
cout<<sum<<endl;
}

samitsingh-cd
Автор

hi i'm demelash from est Africa (ethiopia).i love the way you teach keep it up.

Demelash
Автор

Mam thanks a lot for your c++ classes mam, thanks a lot mam, , can able to understand very easily

srimirasrimira
Автор

Thanks maam for uploading vdo on c++ hope more vedios come fastly

prateeksharma
Автор

Mam Your lectures are very helpful for taking so much efforts for us ...🙂

mayurshukla
Автор

to add the numbers from 1 to 10
step1=before for loop, I declare the variable with the name sum=0
step2=then in for loop, I stored the value of "i" in the sum and add the sum
step3=out of for loop I print the value for the sum

bakhtullah
Автор

Mam i am very much confused in string & character arrays😓..
I need badly lecture on this topic in c++.
I understand your lecture better than my varsity😔😍😍🥰

hasanmahmud
Автор

Am Khalid Fareed from Pakistan very nice delivering coding lectures Ma'am.thanks a lot.

LuxuryRidesGlobal
welcome to shbcf.ru