Display even numbers using while and do while loops #include <stdio.h> int main() { int num = 1; // Using while loop to display even numbers …