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

#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();
                               }

Edited 3 Years Ago by prakash4

Comments
Please don't do other people's homework for them.

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.

Edited 3 Years Ago by deceptikon

This article has been dead for over six months. Start a new discussion instead.