Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Corong_ExerciseNo3

write a program that will input five (5) numbers display the highest number
Comment

Corong_ExerciseNo3

#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;
}
Comment

Corong_ExerciseNo3(1)

Write a program that will input a number and will print "Divisible" if the number is divided by 5, otherwise print "Not Visible"
Comment

Corong_ExerciseNo3(2)

Write a program that will input a number and will print "Divisible" if the number is divided 5, otherwise print "Not Visible"
Comment

Corong_ExerciseNo3(2)

#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;
}
Comment

Corong_ExerciseNo3(2)

#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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: Buy 2 Get 1 Free codechef solution in c++ 
Cpp :: sort using comparator anonymous function c++ 
Cpp :: using of and || c++ 
Cpp :: C++ Single Line Comments 
Cpp :: sfml hide message 
Cpp :: c++ regex to validate indian phone number pattern 
Cpp :: for llop in c++ 
Cpp :: flutter container margin 
Cpp :: c++ Detect Cycle in a Directed Graph 
Cpp :: how to find the left most bit 1 in binary of any number 
Cpp :: how to refresh multiple command lines in C++ stream 
Cpp :: quiz arrary and pointers in c++ 
Cpp :: nodeafternode 
Cpp :: cosnt cast 
Cpp :: Pawri Meme codechef solution in c++ 
Cpp :: sro in c++ 
Cpp :: c++ program 
Cpp :: c++ how to iterate through 2d array in c++ 
Cpp :: how the theam are store in database 
Cpp :: void linux java 
Cpp :: c++ loop 
Cpp :: 1672. Richest Customer Wealth leetcode solution in c++ 
Cpp :: C++ Point to Every Array Elements 
Cpp :: is there anything like vector<intx[100] 
Cpp :: how to srt vector array 
Cpp :: Overloading IO Stream 
Cpp :: Stack Modified 
Cpp :: c++ array on heap 
Cpp :: inpout in Array c++ 
Cpp :: open a url with dev c 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =