Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func main() {
- var n int;
- fmt.Println("Please note that negative interger will be ignore");
- fmt.Printf("How many times u want to run? : ");
- fmt.Scanf("%d", &n);
- if (n>=0) {
- run(n-1);//this is my function
- }else{
- //I want to clear screen here
- fmt.Println("Please renter give me a positive number");
- main()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement