Write a program a program that take a number from user . if number is positive, then print “a” on screen (a character variable)
Write a program a program that take a number from user . if number is positive, then print “a” on screen (a character variable)
#include<stdio.h>
main()
{
int a;
char b;
printf("Enter a number");
scanf("%d",&a);
if(a>0)
{
printf("\n character is A %c",b);
}
else
{
printf("number is not positive");
}
}
Comments
Post a Comment