1.writte a program that generates output
10
20
30
Generate by using 10

2.write a program that take age from a person and converts into months and days .
Please Help Thanxx

Recommended Answers

All 9 Replies

#include<iostream.h>
#include<conio.h>
class generator
{
      public:
             int a,i;
             void display();
             generator()
             {
                        a=0;i=0;
                        }
             };
             void generator::display()
             {
                  a=10;
                  for(i=1;i<=3;i++)
                  {
                                    a=10*i;
                                    cout<<a<<"\n";
                                    }

                                    }
                           int main()
                           {
                               generator b;
                               b.display();
                               getch();
                               }
commented: Please don't do other people's homework for them. -3

Thanks Bro bro but i need more help for no.2

actually iam not getting that.......... will u xplain me in detail.....like eg for the o/p

I have to subit my assignment tommorow :(

I have to subit my assignment tommorow :(

I have to subit my assignment tommorow :(

If it's your assignment, why are you asking for other people to do it? Please read our rules concerning homework.

I am new in Software Engg and Teacher Gave unseen and asked to search ..Anyway Thankyou verMuch Parkash

I find it extremely unlikely that a teacher would give you an assignment without covering any of the material needed to complete it. The problem is more likely on your end in not going to class or not paying attention. In that case, you get what you deserve and the failing grade should be a good lesson in itself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.