BCA C-Lab- 2nd Lecture 1st Sem
#include<stdio.h>
int main()
{ int x; printf("Enter a number:- ");
scanf("%d", &x); if(x%2==0) {
// == is for checking if both values are true
printf("\nThe number is even");
}
printf("\nThank you :)");
return 0; }
Things i learnt:-
1. "==" is for checking if both values are true.
Dark Mode Notes
Welcome to your notes in dark mode! This style reduces eye strain during nighttime or extended reading.
Here’s an example of a code snippet:
printf("Hello, World!");
Feel free to add more content to make your notes stand out!
No comments:
Post a Comment