#include #include int reverse_check(int n) { int rev,temp=0,a=10; while(n>0) { rev=n%a; n=n/a; temp=temp*a+rev; } return(temp); } main() { int n; printf("\nEnter the number: "); scanf("%d",&n); if(reverse_check(n)==n) printf("\nThe given number is a palindrome\n"); else printf("\nthe given number is not a palindrome\n"); }
#include addnum(int a,int b) { a+=b; return a; } int main() { int x,y; printf("Enter the value of A\n"); scanf ("%d",&x); printf("Enter the value of B\n"); scanf ("%d",&y); addnum(x,y); printf("The result is\n"); printf ("%d",addnum(x,y)); return 0; }
#include addnum(int a,int b) { a+=b; return a; } int main() { int x,y; printf("Enter the value of A\n"); scanf ("%d",&x); printf("Enter the value of B\n"); scanf ("%d",&y); addnum(x,y); printf("The result is\n"); printf ("%d",addnum(x,y)); return 0; }
#include
উত্তরমুছুন#include
int reverse_check(int n)
{
int rev,temp=0,a=10;
while(n>0)
{
rev=n%a;
n=n/a;
temp=temp*a+rev;
}
return(temp);
}
main()
{
int n;
printf("\nEnter the number: ");
scanf("%d",&n);
if(reverse_check(n)==n)
printf("\nThe given number is a palindrome\n");
else
printf("\nthe given number is not a palindrome\n");
}
#include"stdio.h"
উত্তরমুছুনint a,b,c;
addnum(a,b){
c=a+b;
return c;
}
main(){
start:;
int d,e;
scanf("%d",&d);
scanf("%d",&e);
printf("The addition is : %d \n",addnum(d,e));
goto start;
}
#include
উত্তরমুছুনaddnum(int a,int b)
{
a+=b;
return a;
}
int main()
{
int x,y;
printf("Enter the value of A\n");
scanf ("%d",&x);
printf("Enter the value of B\n");
scanf ("%d",&y);
addnum(x,y);
printf("The result is\n");
printf ("%d",addnum(x,y));
return 0;
}
#include
উত্তরমুছুনaddnum(int a,int b)
{
a+=b;
return a;
}
int main()
{
int x,y;
printf("Enter the value of A\n");
scanf ("%d",&x);
printf("Enter the value of B\n");
scanf ("%d",&y);
addnum(x,y);
printf("The result is\n");
printf ("%d",addnum(x,y));
return 0;
}