apple 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/apple.rb +17 -10
  2. data/lib/apple/version.rb +1 -1
  3. metadata +1 -1
@@ -4,15 +4,22 @@ require "apple/version"
4
4
  module Apple
5
5
  class A
6
6
  def abc
7
- puts "enter a no."
8
- a=gets # user will enter a number
9
- b=a.to_i # converting entered number to integer
10
- while b>1
7
+ puts "---------------------enter a no.----------------------"
8
+ a=gets # user will enter a number
9
+ puts""
10
+ puts "-------------enter second numebr----------------------"
11
+ b=gets
12
+ puts""
13
+ c=a.to_i
14
+ d=c+b.to_i # converting entered number to integer
15
+ while c>0
16
+
11
17
  puts "hello"
12
- b=b-1
13
- end # ending while
14
- end # ending method abc
15
- end # ending class
16
- x=A.new # making object of class A
17
- x.abc # calling method abc
18
+ c=c-1
19
+ end # ending while
20
+ puts "the sun is #{d}"
21
+ end # ending method abc
22
+ end # ending class
23
+ x=A.new # making object of class A
24
+ x.abc # calling method abc
18
25
  end
@@ -1,3 +1,3 @@
1
1
  module Apple
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: