How to Print prime numbers between 1 to n using for loop in C programming | by Sanjay Gupta

preview_player
Показать описание
How to print prime numbers between 1 to n in c programming.
Connect With Me!
Download App : techimage [Google Play]
Call: +91 98290 11904
Рекомендации по теме
Комментарии
Автор

I just started learning for loop and i gave myself the task to come up with this programme myself looks like i have long way to go 😅

LowkeyStudy
Автор

Don't need to check up to n, it will make performance slow and it won't work for large inputs...
Just check up to I<=sqrt(n) it Will make your code optimised and will work for any inputs without getting time limit error.

chinmayanand
Автор

he just fluently speaking code ;;no dry run

_arnab
Автор

You said that for loop but why used break statement

Chari