-1

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

3
Contributors
9
Replies
31
Views
3 Years
Discussion Span
Last Post by deceptikon
0
#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 by prakash4

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

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.

0

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

1

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 by deceptikon

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.