Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Two {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.println("The program is showing how many of my followers have seen my story in Instagram");
- System.out.println("Enter the followers and viewers:");
- float followers = scanner.nextFloat();
- float viewers = scanner.nextFloat();
- float percentage = ((viewers / followers) * 100);
- System.out.println("Percentage viewers from all followers is:" + percentage +"%.");
- double love = (followers - followers) + 1;
- System.out.printf("%.1f, this shows how many of them really matters. Only one - YOU.(NS)",love);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement