Index Forums System Verilog Trail

Tagged: 

  • This topic has 2 replies, 3 voices, and was last updated 1 year ago by test.
  • Creator
    Topic
  • #650
    Payal
    Participant

    Test#1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #651
    forumlz
    Keymaster
    Up
    2
    Down
    ::

    Okay Test#2

    #653
    test
    Participant
    Up
    0
    Down
    ::

    test this method

    #include<stdio.h>  
    int main()    
    {    
    int n,r,sum=0,temp;    
    printf("enter the number=");    
    scanf("%d",&n);    
    temp=n;    
    while(n>0)    
    {    
    r=n%10;    
    sum=(sum*10)+r;    
    n=n/10;    
    }    
    if(temp==sum)    
    printf("palindrome number ");    
    else    
    printf("not palindrome");   
    return 0;  
    }   
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.