Saturday, December 8, 2012

WAP to Create Simple Calculator


#include<stdio.h>
#include<conio.h>
void main()
{
            int a,b,c,k;
            clrscr();
           
            printf("1 for Addition\n2 for Substract\n3 for Multiplication\n4 Devision");
            printf("\n\nEnter Your Choise : ");
            scanf("%d",&k);

WAP to print reverse it and check number is Palindrome or Not

#include<stdio.h>
#include<conio.h> 
main()
{
   int n, reverse = 0, temp;
 
   printf("Enter a number to check if it is a palindrome or not\n");
   scanf("%d",&n);
 

WAP to print Prime Factor entered Number

#include<stdio.h> 
#include<stdio.h>
 
main()
{
   int n, i = 3, count, c;
 
   printf("Enter the number of prime numbers required\n");
   scanf("%d",&n);