Hello World (Bsic C Program)
/* To Print a Text using C */
#include<stdio.h>
void main ()
{
printf("Hello World\n");
printf("I am Crazy");
}
***Here \n used for display the next printf statement in the next line./*To Print Sum Of Two Numbers*/
#include<stdio.h>
void main ()
{
int a,b,s;
printf("Enter Two Numbers");
scanf("%d %d",a,b);
s = a + b;
printf(" The sum of %d and %d is %d",a,b,s);
}
Comments
Post a Comment