Search This Blog

Friday 3 June 2016

//WAP using for loop to print numbers from 1 to 10.

//WAP using for loop to print numbers from 1 to 10.
#include<iostream.h>
#include<stdlib.h>
int main()
{
      system("cls");
      int i;      //declaring variable i
      for(i=1;i<=10;++i)
            cout<<i<<"\t";
      return 0;
}



OUTPUT

No comments:

Post a Comment

How do I crack the GSOC in the field of machine learning?

How do I crack the GSOC in the field of machine learning? Working as a student at Google Summer of Code demands for your dedication an...