Even or Odd program in C using modulus operator || Crazy Indian Developer

Even or Odd program in C using modulus operator || Crazy Indian Developer

Crazy Indian Developer

6 лет назад

134 Просмотров

------------------Even or Odd program in c using modulus operator-----------------------

void main()
{
int n;
clrscr();
printf("\n\tEnter an Integer to check even or odd:=");
scanf("%d",&n);
if(n%2==0)
printf("\n\t Integer is Even");
else
printf("\n\t Integer is Odd");
getch();
}


Output:---------

Enter an Integer to check even or odd:= 4
Integer is Even
-----------------------------------------
Enter an Integer to check even or odd:= 7
Integer is Odd




-----------------------------------------------------------------------------------------------------------
======================================================
My name is vijay and i am making Tutorials to help those of you who want to learn C Programming or programs. If you enjoy and learn anything from my videos then please like my video and Subscribe to my channel !!!!!!!!!

👇👇👇

Read My Blog Posts 👉 https://crazyindiandeveloper.medium.com/

Access My Projects On GitHub 👉 https://github.com/crazyindiandeveloper

Follow Me On Instagram 👉 https://www.instagram.com/crazy_indian_developer/

Subscribe Me On YouTube 👉 https://www.youtube.com/channel/UCnij5U2Ic3PtpzCWmmydP7g?sub_confirmation=1

Disclaimer: This Video Is For Strictly Educational And Informational Purposes Only.

Тэги:

#even_odd_program_in_c_using_for_loop #odd_or_even_program_in_c++ #c_program_to_check_whether_a_number_is_even_or_odd_using_function #c_program_to_find_even_or_odd_using_if_else #c_program_to_find_even_or_odd_without_using_operator #c_program_to_print_odd_numbers #even_or_odd_program_in_c_without_using_mod_operator #check_even_or_odd_without_using_modulus_and_division_in_c #c_program_to_check_odd_or_even_using_bitwise_operator #programiz #programmingsimplified #w3schools #codeforwin #quora
Ссылки и html тэги не поддерживаются


Комментарии: