Tuesday, March 5, 2024

45. Input a salary and increament 10% salary :—

 45. Input a salary and increament 10% salary :—


#include<stdio.h>

int main()

{

    int s,i,us;

    printf("enter a salary ");

    scanf("%d",&s);

    i=s*10/100;

    us=s+i;

    printf("Updated salary=%d",us);

    return 0;

}


No comments:

Post a Comment