Thursday, October 23, 2014

How to print a line using C, java



USING C

#include<stdio.h>
#include<conio.h>
int main()
{
printf("hi !! how are you");
//printf is use to print something we want//
return 0;
}


USING JAVA

public static void main(String[] args)
{
 System.out.println("hi!! how are you");
}

......................................................................................................

in both java and c the output will be

hi!! how are you
.......................................................................................................


0 comments:

Post a Comment