Monday, October 19, 2020

c program to find 20% of a number

#include <stdio.h>

int main() {

    float n;

    printf("Enter a number:");

    scanf("%f", &n);

    printf("Answer is %.2f", n*0.20);

    return 0;

}

No comments:

Post a Comment

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...