Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Two {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         System.out.println("The program is showing how many of my followers have seen my story in Instagram");
  8.         System.out.println("Enter the followers and viewers:");
  9.         float followers = scanner.nextFloat();
  10.         float viewers = scanner.nextFloat();
  11.  
  12.         float percentage = ((viewers / followers) * 100);
  13.         System.out.println("Percentage viewers from all followers is:" + percentage +"%.");
  14.  
  15.  
  16.  
  17.         double love = (followers - followers) + 1;
  18.  
  19.         System.out.printf("%.1f, this shows how many of them really matters. Only one - YOU.(NS)",love);
  20.  
  21.  
  22.  
  23.  
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement