20120113

Program in C to say hello, cdemo.c

//========================
//Program in C to say hello, cdemo.c
//========================
#include<stdio.h>
int main()
{
printf("\n Hello \n");
return 0;
}

//========================
//Program in c to display for loop, for1.cpp
//========================
#include<iostream>
using namespace std;
int main()
{
int i, max=10;
//for(i=1;i<=max;i++);
for(i=1;i<=max;i++)
        {
        cout<<i<<"\t ";
        }
return 0;
}

No comments:

Post a Comment