@Akilaeaswari

without temp

September 23, 2020 · C
#include <stdio.h>

int main() {
    int first_no,second_no;
    printf("enter the first numper");
    scanf("%d",&first_no);
    printf("%d",first_no);
    printf("enter the second numper");
    scanf("%d",&second_no);
    printf("%d",second_no);

SIZE OF

September 23, 2020 · C
#include <stdio.h>

int main() {
     int intType;
     float floatType;
     double doubleType;
     char charType;
     short int x;
     long b;
     long long c;
     char e;

without temp

September 23, 2020 · C
#include <stdio.h>

int main() {
    int first_no,second_no;
    printf("enter the first numper");
    scanf("%d",&first_no);
    printf("%d",first_no);
    printf("enter the second numper");
    scanf("%d",&second_no);
    printf("%d",second_no);
    first_no=first_no+second_no;

swapping

September 23, 2020 · C
#include <stdio.h>

int main() {
    int first_no,second_no,temp;
    printf("enter  first numper:");
    scanf("%d",&first_no);
    printf("%d",first_no);
    printf("enter  second numper:");
    scanf("%d",&second_no);
    printf("%d",second_no);
    temp=first_no;

enter any numper

September 21, 2020 · C
#include <stdio.h>

int main() {
    int n;
    printf("enter any numper:");
    scanf("%d",&n);
    printf("%d",n);
    printf("\n decimal value is;%d",n);
    printf("\n octal value is;%o",n);
    printf("\n heaxadecimal value is;%h",n);
    return 0;

devider

September 18, 2020 · C
#include <stdio.h>

int main()
{
    int a,b,c,d;
    printf("enter dividend\n");
    scanf("%d",&a);
    printf("enter divisor\n");
    scanf("%d",&b);
    c=a/b;
    d=a%b;

positive or negative

September 18, 2020 · C
#include <stdio.h>

int main() {
    int number;
    printf("enter the positive or negative number \n");
    scanf("%d",&number);
    printf("%d",number);
    if(number>0)
    printf("is the positive number\n");
    else
    printf("is the negative number ");

ASCII VALUE

September 18, 2020 · C
#include <stdio.h>

int main() {
    char c='v';
    int y=77;
    printf("ASCII VALUE OF v=%d \n,c");
    printf("ASCII VALUE OF 77=%c \n,y");
    return 0;
}

float numbers

September 16, 2020 · C
#include <stdio.h>

int main() {
    int a,b,c;
    printf("enter a value:");
    scanf("%d",&a);
    printf("%d",a);
    printf("\n enter b value:");
    scanf("%d",&b);
    printf("%d",b);
    c=a*b;

exercise

September 16, 2020 · C
#include <stdio.h>
int main()
{
    int numper;
    printf("Enter the odd or even numper\n");
    scanf("%d",&numper);
    
    if(numper%2 ==0)
    printf("%d is an even numper",numper);
    else
    printf("%d is an odd numper",numper);

exercise

September 16, 2020 · C
#include <stdio.h>

int main() {
    int a,b;
    printf("enter a value:");
    scanf("%d",&a);
    printf("%d\n",a);
    printf("enter b value:");
    scanf("%d",&b);
    printf("%d\n",b);
    return 0;

exercise

September 10, 2020 · C
#include <stdio.h>

int main()
{
    printf("Name       : G.Akila Easwar:\n");
    printf("father name:k.Govindharaj:\n");
    printf("mother name:G.Mariammal:\n");
    printf("collage    :anjac collage in sivakasi:\n");
    printf("department :bca b section:\n");
    printf("hobbies    :dancing:\n");
    printf("ampition   :government job:\n");