Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

PROGRAM 1

#include<stdio.h>
int main()
{
printf("Hello World");
return 0;
}

PROGRAM 2
#include <stdio.h>
int main()
{
printf("name : abhishek kumar sahu\n");
printf("roll number : 23cve1002\n");
printf("address : nit goa cuncolim");
return 0;
}

PROGRAM 3
#include<stdio.h>
int main()
{
int a;
printf("enter the number :\n");
scanf("%d",&a);
return 0;
}

PROGRAM 4
#include<stdio.h>
int main()
{
float a;
printf("enter the number :\n");
scanf("%f",&a);
return 0;
}

#include<stdio.h>
int main()
{
char ch;
printf("enter the character :\n");
scanf("%c",&ch);
return 0;
}

PROGRAM 5
#include<stdio.h>
int main ()
{ int n1 , n2, sum;
printf("enter the numbers :\n");
scanf("%d\n%d",&n1,&n2);
sum = n1+n2;
printf("%d",sum);

return 0;
}

PROGRAM 6
#include <stdio.h>
int main()
{
int n1, n2, sub, division, multiplication;
printf("enter the numbers :\n");
scanf("%d\n%d", &n1, &n2);
sub = n1 - n2;
printf("subtaction is : %d\n", sub);
division = n1 / n2;
printf("division is : %d\n", division);
multiplication = n1 * n2;
printf("multiplication is : %d\n", multiplication);

return 0;
}

You might also like