close

# i was a pakistani ﻿Code you:

1 . Create a c software to change a given quantity

2 . C program to find reverse of a number

several. C plan to reverse the digits of a number

4.  Reverse of a quantity in c using whilst loop

#include

int main()

int num,r,reverse=0;

printf("Enter any number: ");

scanf("%d",&num);

while(num)

r=num%10;

reverse=reverse*10+r;

num=num/10;

printf("Reversed of number: %d",reverse);

return 0;

Test output:

Enter into any number: doze

Reversed of number: twenty one

1 . C program to check on even or odd

installment payments on your C identify odd or perhaps

3. How you can check odd number in c

4. How to identify odd or perhaps in c

5. C even peculiar test

#include

int main()

int number;

printf("Enter any integer: ");

scanf("%d",&number);

if(number % 2 ==0)

printf("%d is even number.",number);

else

printf("%d is odd number.",number);

return 0;

1 ) C system to add numbers of a amount

2 . C program intended for sum of digits of any number

3. C software to calculate sum of digits

#include

int main()

int num,sum=0,r;

printf("Enter a number: ");

scanf("%d",&num);

while(num)

r=num%10;

num=num/10;

sum=sum+r;

printf("Sum of digits of number:  %d",sum);

return 0;

Test output:

Enter a number: 123

Sum of digits of number: � 6

#include

#include

void main()

printf ("\nEnter the Length and Breadth of the Rectangle: "); scanf("%f %f", &length,&breadth);

printf("\nEnter the Radius of the Circle: ");

printf("\nThe area of the rectangle is: %f", aor);

printf("\nThe perimeter of the rectangle is: %f ", por);

printf("\n\nThe area of the Circle with radius %f is: %f ", radius, aoc); printf("\nThe circumference of the same circle is: %f", coc); getch();

If the five-digit number is insight through the key pad, write a program to determine the quantity of the digits. (Hint: Use the modulus operator ‘%')

void main()

float number,a,b,c,d,e;

int a1,b1,c1,d1,e1,t;

printf("\nKey in a five digit number");

scanf("%f",&number);

a=number/10000.0;

a1=a/1;

b=(number-(a1*10000.0))/1000;

b1=b/1;

c=(number-(a1*10000.0)-(b1*1000))/100;

c1=c/1;

d=(number-(a1*10000.0)-(b1*1000)-(c1*100))/10;

d1=d/1;

e=(number-(a1*10000.0)-(b1*1000)-(c1*100)-(d1*10))/1;

e1=e/1;

t=a1+b1+c1+d1+e1;

printf("\nThe sum of the five digits is %d",t);

Provided a point (x, y), create a program to determine if it is on the x-axis, y-axis or at the origin, viz. (0, 0).

void main()

float x,y;

printf("\nInput the(x,y) values");

scanf("%f%f",&x,&y);

if(x==0&&y==0)

printf("\nThe point lies on the origin");

else if(x==0&&y!=0)

printf("\nThe point lies on the y-axis");

else if(x!=0&&y==0)

printf("\nThe point lies on the x-axis");

else

printf("\nThe point does not lie on any axis or origin");

Given three points (x1, y1), (x2, y2) and (x3, y3), write a software to check if every one of the three items fall on a single straight collection.

void main()

float x1,x2,x3,y1,y2,y3;

printf("\nEnter the three coordinates (x1,y1),(x2,y2),(x3,y3)"); scanf("%f%f%f%f%f%f",&x1,&y1,&x2,&y2,&x3,&y3);

if ((y2-y1)/(x2-x1)==(y3-y2)/(x3-x2))

printf("\nThe three points fall on the same line");

else

printf("\nThe three points are not collinear");

Provided the length and breadth of the rectangle, write a program to look for whether the area of the rectangle is definitely greater than it is perimeter. For example , the area in the rectangle with length sama dengan 5 and breadth sama dengan 4 is definitely greater than its perimeter.

void main()

float l,b,a,p;

printf("Input length and breadth of rectangle");

scanf("%f%f",&l,&b);

a=l*b;

p=2.0*l+2.0*b;

(a>p?printf("\nArea is larger than perimeter"):printf("\nArea is smaller than perimeter"));

Write a plan to check whether a triangle can be... ### Cultural Critical Incident Study Paper

Social Critical Event Experiences of Foreigners in Germany Jeanina Hass Janine Noack…... 