#include <stdio.h>
#include <stdlib.h>
//Definition Of Functions.
int number1(int x);
int number2(int y);
int main()
{
int n1,n2;
printf("Enter Numbers : \n");
scanf("%d",&n1);
scanf("%d",&n2);
number1(n1);//Function Calling..
number2(n2);//Function Calling..
return 0;
}
//Function Prototype of First Number..
int number1(int x)
{
if(x>0)
{
printf("First Number Is Positive.\n");
}
else if(x<0)
{
printf("First Number is Negative.\n");e
}
}
//Function Prototype of First Number..
int number2(int y)
{
if(y>0)
{
printf("Second Number Is Positive.\n");
}
else if(y<0)
{
printf("Second Number is Negative.");
}
}
#include <stdlib.h>
//Definition Of Functions.
int number1(int x);
int number2(int y);
int main()
{
int n1,n2;
printf("Enter Numbers : \n");
scanf("%d",&n1);
scanf("%d",&n2);
number1(n1);//Function Calling..
number2(n2);//Function Calling..
return 0;
}
//Function Prototype of First Number..
int number1(int x)
{
if(x>0)
{
printf("First Number Is Positive.\n");
}
else if(x<0)
{
printf("First Number is Negative.\n");e
}
}
//Function Prototype of First Number..
int number2(int y)
{
if(y>0)
{
printf("Second Number Is Positive.\n");
}
else if(y<0)
{
printf("Second Number is Negative.");
}
}
No comments:
Post a Comment