Write a program which print Hi when the user put number greater than 50 and print BYE when the Number is smaller than 50.
#include<stdio.h>
#include<conio.h>
void main ()
{
int n;
clrscr ();
printf("Enter any Number");
scanf("%d",&n);
if (n>50)
printf("Hi");
else
printf("BYE");
getch ();
}
#include<stdio.h>
#include<conio.h>
void main ()
{
int n;
clrscr ();
printf("Enter any Number");
scanf("%d",&n);
if (n>50)
printf("Hi");
else
printf("BYE");
getch ();
}
![]() |
cprogramminglanguagehistory.blogspot.com |
![]() |
cprogramminglanguagehistory.blogspot.com |
No comments:
Post a Comment