C Program To Find Prime Numbers From 2 To N, using For Loop

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

Lets write a C program to find and print / display all the prime numbers from 2 to N. Here N is the user entered number / limit.

Prime Number: Any natural number which is greater than 1 and has only two factors i.e., 1 and the number itself is called a prime number.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

I couldn't understand that if second for loop variable count =2, num=2
Second loop conditions says that
Count =2 ; count < num ;
// 2<2
// count and num is same then how would be conditions is true

Plz explain me I'm looking explanation for this since 2 days but couldn't understand

nileshtadagonda
welcome to shbcf.ru