#!/usr/bin/perl use strict; use warnings; print "Enter a number:"; my $input = <STDIN>; chomp $input; print "47\n" if ( $input == 47 );
This probably isn't what you want, I can't tell exactly what you're looking for based on what you've asked here and in the CB. This sounds like a homework assignment, I suspect the best course of action would be to study your notes, speak to your tutor or other students. See also How do I post a question effectively?.
In reply to Re: how to print only 47 and another number will rejected and when user give 47 that number only print ?
by marto
in thread how to print only 47 and another number will rejected and when user give 47 that number only print ?
by virudinesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |