Skip to content

Instantly share code, notes, and snippets.

View msuryaprakash's full-sized avatar

Murapaka SuryaPrakash msuryaprakash

View GitHub Profile
#include<stdio.h>
main()
{
int a = 1, b = 2;
/* Storing result of addition in variable a */
a = a + b;
printf("Addtion of two numbers= %d\n", a);
#include<stdio.h>
main()
{
int a, b, c;
printf("Enter two numbers to add\n");
scanf("%d %d",&a,&b);
c = a + b;
printf("Sum Of Two Numbers = %d\n",c);
#include <stdio.h>
main()
{
char string[] = "HELLO WORLD";
printf("%s\n", string);
return 0;
}
//C HELLO WORLD
#include <stdio.h>
main()
{
printf("HELLO WORLD");
return 0;
}
/* PROGRAM TO PRINT NUMBERS OF 1 TO N WITHOUT USING ANY LOOPS */
#include<stdio.h>
void Print_Numbers(int,int); //Declaring the Function Definition
main()
{
int NUM;
printf("\n *** Prime Numbers Program in C With Out Using any loops ***");
printf("\n Enter Number of Primes Numbers Required: ");