BASIC C PROGRAMMING AND TRICKS-TECHNOLOGIES-TECHNICALS
program to find even or odd number
Get link
Facebook
X
Pinterest
Email
Other Apps
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter a value which you want to check=");
scanf("%d",&a);
if(a%2==0)
{
printf("a is even");
}
else
{
printf("a is odd");
}
getch();
}
******************BOOT OUR PHONE IN RECOVERY MOOD************************** 1. WHEN OUR ANDROID PHONE WILL NOT BOOTING NORMALLY, WHEN WE CAN PERFORM FACTORY RESET FROM BOOT MENU . 2. PRESS AND HOLD THE CORRECTS BUTTONS WHILE YOUR PHONE IS POWERED OFF. 3. ALMOST PHONE GENERALLY USE VOLUME UP , VOLUME DOWN AND POWER OFF BUTTON TO GET FACTORY MENU. 4. WHEN WE PRESS THESE BUTTONS THEN FACTORY BOOT MENU IS OPEN. 5. NOW PRESS SCROLL DOWN BUTTON TO THROUGH THE THE MENU BUTTON. 6. PRESS POWER BUTTON TO SELECT "WIPE DATA/ FACTORY RESET". 7. SCROLL TO SELECT THE YES . THIS WILL CONFIRM YOUR SELECTION. 8. NOW PRESS THE POWER BUTTON. THIS WILL START THE RESET PROCESS AND REFORMAT YOUR ANDROID DEVICE TO ITS FACTORY SETTING. ***********************************************************************************
#include<stdio.h> #include<conio.h> void main() { int a; clrscr(); printf("Enter a number which you want to check it is prime or not="); scanf("%d",&a); if(a%2==0 || a%3==0 || a%5==0) { printf("%d number is not prime"); } else { printf("its a prime number"); } getch(); }
Comments
Post a Comment