Posts

Showing posts from September, 2017

C program to find the odd number between 1 and 100

#include<stdio.h>  main()          {   int i,n; printf("\nEnter the number ="); scanf("%d",&n);         if(n==2)              {      printf("\nThe number is  a prime       number");              }         else             {                for(i=2;i<100;i++)                                         {                                   if(n%i==0);                                         }       ...