Offer

Do While program in C language | Do while | C Language


Do While program  in C language :


Do while program Output :

(1).


(2).



Copy  text from below 📝 :

#include<stdio.h>

#include<conio.h>

int main()

{

    int num,b,rev=0,cpy;

    printf("enter any number :\n");

     scanf("%d",&num);

    cpy=num;

    do

    {

        b=num%10;

        rev=rev*10+b;

        num=num/10;

    }

    while(num!=0);

    if(cpy==rev)

    {

         printf("Palindrome");


    }

    else

    {

         printf("Not palindrome");


    }


}


For more Program :

Download (program )pdf file :




Post a Comment

0 Comments