LAB RECORD PROGRAM NO -3 Get link Facebook X Pinterest Email Other Apps November 27, 2022 3.Write a C Program to check whether a given number is even or odd. #include<stdio.h> #include <conio.h>void main() { int n; printf("Enter an integer\n"); scanf("%d", &n); if (n%2 == 0) printf("\nGiven Number %d is an Even Number.",n); else printf("\nGiven Number %d is an Odd Number.",n "); getch(); } Get link Facebook X Pinterest Email Other Apps Comments
PPS UNIT-1 COMPLETE NOTES December 03, 2022 UNIT 1 : INTRODUCTION TO COMPUTERS AND C LANGUAGE NOTES https://drive.google.com/file/d/1PHIklpBvB6nj5fK9zDL7mp0tXIY-o-pp/view?usp=share_link Read more
Comments
Post a Comment