Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. func main() {
  2. var n int;
  3. fmt.Println("Please note that negative interger will be ignore");
  4. fmt.Printf("How many times u want to run? : ");
  5. fmt.Scanf("%d", &n);
  6.  
  7. if (n>=0) {
  8. run(n-1);//this is my function
  9. }else{
  10. //I want to clear screen here
  11. fmt.Println("Please renter give me a positive number");
  12. main()
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement