write a program that will input five (5) numbers display the highest number
#include<stdio.h>
int main()
{
int A,B,C,D,E;
printf("ENTER THE FIVE NUMBERS");
scanf("%d %d %d %d %d",&A,&B,&C,&D,&E);
if(A>B && A>C && A>D && A>E)
printf("%d is largets",A);
else
if(B>A && B>C && B>D && B>E)
printf("%d is largest",B);
else
if(C>A && C>B && C>D && C>E)
printf("%d is largest",C);
else
if(D>A && D>B && D>C && D>E)
printf("%d is largest",D);
else
if(E>A && E>B && E>C && E>D)
printf("%d is largest",E)"
return 0;
}
Write a program that will input a number and will print "Divisible" if the number is divided by 5, otherwise print "Not Visible"
Write a program that will input a number and will print "Divisible" if the number is divided 5, otherwise print "Not Visible"
#include<stdio.h>
int main()
{
int number;
printf("
Please enter any number to check weather it is divisible by 5:");
scanf("%d",&number);
|
if(number % 5 == 0)
printf("
%d is divisible",number)
else
printf("
%d is Not Divisible",number)
return 0;
}
#include<stdio.h>
int main()
{
int number;
printf("
Please enter any number to check weather it is divisible by 5:");
scanf("%d",&number);
|
if(number % 5 == 0)
printf("
%d is divisible",number);
else
printf("
%d is Not Divisible",number);
return 0;
}